Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 943 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 943 Bytes

PHP GoogleTranslate free Build Status

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

Eliminates IP request limitations

Installation

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.1.1"
}

Requires installing tor (https://www.torproject.org/).

Usage

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

$source = 'es';
$target = 'en';
$text = 'buenos días';

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

echo $result;