Αποτελέσματα Αναζήτησης
To get samples that work, view the README.md files that come with installation (after running composer require google/cloud-translate). This page comes up number one in search, so it was necessary to provide an update. Even Google's own translating text (basic) PHP examples didn't work for me.
Dynamically translates text between thousands of language pairs. The Cloud Translation API lets websites and programs integrate with the translation service programmatically. The Google Translation API is part of the larger Cloud Machine Learning API family.
30 Νοε 2022 · We will walk you through the process of setting up the API and using it to translate text in real-time. By the end of this tutorial, you will have a fully functional translation tool using...
10 Δεκ 2023 · I am trying to use the Google Translate API to automatically translate PDF documents and I want to use php/curl. The code for translating text is pretty easy to handle: function _translate_text(){ $
26 Νοε 2024 · To use the PHP client library for Cloud Translation - Basic, you must instantiate the Cloud Translation API client as follows: See how to translate text for additional usage details.
20 Ιουν 2023 · On a similar note, in this article, we study how to dynamically translate text using Google Translation API in PHP. Under the hood, Google uses machine learning and gives a final translated text. In order to use Google Cloud services, you need to authenticate your Google account.
Free Google Translate API PHP Package. Translates totally free of charge. Install this package via Composer. Note PHP 8.0 or later is required. Use following versions of this package for older PHP versions: Create GoogleTranslate object. $tr = new GoogleTranslate ('en'); // Translates into English. Or you can change languages later.