Simple Google Translate API implementation without an API key. This package provides only one method: translate() and a simple translation interface over https://translate.googleapis.com/translate_a/single?
endpoint. This is an open API. This package is not using the cloud API version.
You can see Google Translate Clone as a demo.
use LaravelReady\OpenGoogleTranslate\Translator;
$response = Translator::translate('When was the last time you used google translate?', 'en', 'tr');
See all available languages;
Get via composer
composer require laravel-ready/open-google-translate
php artisan vendor:publish --tag=open-google-translate-config
- This project was generated by the packager.