Path : /var/www/clients/client0/web25/web/vendor/statickidz/php-google-translate-free/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/clients/client0/web25/web/vendor/statickidz/php-google-translate-free/README.md |
# PHP GoogleTranslate free [](https://travis-ci.org/statickidz/php-google-translate-free) Simple PHP library for talking to Google's Translate API for free. Eliminates IP request limitations ## Installation Install this package via [Composer](https://getcomposer.org/). ``` composer require statickidz/php-google-translate-free ``` Or edit your project's `composer.json` to require `statickidz/php-google-translate-free` and then run `composer update`. ```json "require": { "statickidz/php-google-translate-free": "^1.2.1" } ``` ## Usage ```php require_once ('vendor/autoload.php'); use \Statickidz\GoogleTranslate; $source = 'es'; $target = 'en'; $text = 'buenos días'; $trans = new GoogleTranslate(); $result = $trans->translate($source, $target, $text); // Good morning echo $result; ```