Skip to content

PHP Google Translate Free (2021) - A simple PHP library to translate texts using Google Translate for free

License

Notifications You must be signed in to change notification settings

nggit/php-gtranslate-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PHP Google Translate (Free)

A simple PHP library to translate texts using Google Translate for free. There is also a paid version of Google Translate (requires an API key).

Install

composer require nggit/php-gtranslate-free:dev-master

Usage

require __DIR__ . '/vendor/autoload.php';
use Nggit\Google\Translate;

$translate = new Translate(array('lang' => array('de' => 'en'))); // translate from german to english
$translate->setText('Der schnelle Braune Fuchs springt über den faulen Hund');

echo $translate->process()->getResults();

Enjoy!

About

PHP Google Translate Free (2021) - A simple PHP library to translate texts using Google Translate for free

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages