laravel-ready/open-google-translate

Simple Google Translate API implementation without key

v1.1.1 2022-09-18 13:06 UTC

This package is auto-updated.

Last update: 2024-11-27 00:06:01 UTC


README

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.