Translating texts with google translation service for free but with limits (use proxy)
ayvazyan10/laravelgoogletranslator is a Laravel package for translating texts with google translation service for free but with limits (use proxy).
It currently has 5 GitHub stars and 43 downloads on Packagist (latest version v1.4).
Install it with composer require ayvazyan10/laravelgoogletranslator.
Discover more Laravel packages by ayvazyan10
or browse all Laravel packages to compare alternatives.
Last updated
Translating texts with google translation service for free but with ip limits (use proxy) Take a look at contributing.md to see a to do list.
Via Composer
composer require ayvazyan10/laravelgoogletranslator
Publish provider for config file
php artisan vendor:publish --provider="Ayvazyan10\LaravelGoogleTranslator\LaravelGoogleTranslatorServiceProvider"
2 ways calling
use Ayvazyan10\LaravelGoogleTranslator\LaravelGoogleTranslator;
$trans = new LaravelGoogleTranslator();
$trans->trans('ru', 'en', 'Собака'); // result "Dog"
or with global function
google()->trans('es', 'en', 'buenos días'); // result "good morning"
if you want use proxy see config/laravelgoogletranslator.php config file
<?php
return [
'proxy' => null, // example: ip:port
];
Please see the changelog for more information on what has changed recently.
composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT. Please see the license file for more information.