Download the PHP package mgcodeur/super-translator without Composer
On this page you can find all versions of the php package mgcodeur/super-translator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mgcodeur/super-translator
More information about mgcodeur/super-translator
Files in mgcodeur/super-translator
Package super-translator
Short Description SuperTranslator is a PHP package that allows you to translate text from one language to another using the Google Translate API.
License MIT
Informations about the package super-translator
About SuperTranslator
SuperTranslator is a PHP package that allows you to translate text from one language to another using the Google Translate API.
Installation
Install the package via composer:
Basic Usage
Automatic language detection
If you want to automatically detect the language of the text to translate, you can use the translateAuto
method of the GoogleTranslate
class like this:
You can alse use 'auto' as the value of the $from
parameter:
Translate multiple languages
If you want to translate a text into multiple languages, you just have to pass an array of languages to the translate
or translateAuto
method of the GoogleTranslate
class like this:
Contributors ✨
Thanks go to these wonderful people ✨: