Skip to content

laravel-ready/open-google-translate

Repository files navigation

Open Google Translate for Laravel

Open Google Translate for Laravel

Stable Version Unstable Version Total Downloads License

📂 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.