laravel-ready / open-google-translate
Simple Google Translate API implementation without key
v1.1.1
2022-09-18 13:06 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0
Requires (Dev)
- mockery/mockery: ^1.4
- nunomaduro/larastan: ^2.1
- pestphp/pest: ^1.2
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.8
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.1
README
๐ About
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.
๐ Demo
You can see Google Translate Clone as a demo.
๐ Usage
use LaravelReady\OpenGoogleTranslate\Translator; $response = Translator::translate('When was the last time you used google translate?', 'en', 'tr');
See all available languages;
๐ฆ Installation
Get via composer
composer require laravel-ready/open-google-translate
โ๏ธ Configs
php artisan vendor:publish --tag=open-google-translate-config
โCredits
- This project was generated by the packager.