PHP class to use the Google Translator API for free.
Clone or download
Latest commit 4fe3155 Aug 22, 2017

PHP GoogleTranslate free Build Status

Simple PHP library for talking to Google's Translate API for free.


Install this package via Composer.

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.

"require": {
    "statickidz/php-google-translate-free": "^1.0"


require_once ('vendor/autoload.php');
use \Statickidz\GoogleTranslate;

$source = 'es';
$target = 'en';
$text = 'verdadero';

$trans = new GoogleTranslate();
$result = $trans->translate($source, $target, $text);

echo $result;


Live example here: