Translater text in PHP
Github:
git clone https://github.com/r0ld3x/google-translater-php
cd translate
composer install
Composer:
composer require r0ld3x/google-translater-php
Uses
1. Use with composer
require 'vendor/autoload.php';
use r0ld3x\Translate;
$tr = new Translate;
2. Manually
git clone https://github.com/r0ld3x/google-translater-php
cd google-translater-php
composer install
$tr->tr('Your text to translate', 'source_lang', 'target_lang');
$res = $tr->tr("Te quiero", 'es', 'en');
echo $res;
// I love you