Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-ready/open-google-translate
Google Translate API implementation without API key
https://github.com/laravel-ready/open-google-translate
google-translate laravel translate
Last synced: 3 months ago
JSON representation
Google Translate API implementation without API key
- Host: GitHub
- URL: https://github.com/laravel-ready/open-google-translate
- Owner: laravel-ready
- License: mit
- Created: 2022-07-15T20:47:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T21:49:04.000Z (about 1 year ago)
- Last Synced: 2024-06-02T05:04:08.799Z (8 months ago)
- Topics: google-translate, laravel, translate
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open Google Translate for Laravel
[![Open Google Translate for Laravel](https://preview.dragon-code.pro/LaravelReady/open-google-translate.svg?brand=laravel)](https://github.com/laravel-ready/open-google-translate)
[![Stable Version][badge_stable]][link_packagist]
[![Unstable Version][badge_unstable]][link_packagist]
[![Total Downloads][badge_downloads]][link_packagist]
[![License][badge_license]][link_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](https://relliv.github.io/my-tailwind-components/src/clones/google-translate.html) as a demo.
## π Usage
```php
use LaravelReady\OpenGoogleTranslate\Translator;$response = Translator::translate('When was the last time you used google translate?', 'en', 'tr');
```See all available [languages](https://cloud.google.com/translate/docs/languages);
## π¦ Installation
Get via composer
```bash
composer require laravel-ready/open-google-translate
```## βοΈ Configs
```bash
php artisan vendor:publish --tag=open-google-translate-config
```## βCredits
- This project was generated by the **[packager](https://github.com/laravel-ready/packager)**.
[badge_downloads]: https://img.shields.io/packagist/dt/laravel-ready/open-google-translate.svg?style=flat-square
[badge_license]: https://img.shields.io/packagist/l/laravel-ready/open-google-translate.svg?style=flat-square
[badge_stable]: https://img.shields.io/github/v/release/laravel-ready/open-google-translate?label=stable&style=flat-square
[badge_unstable]: https://img.shields.io/badge/unstable-dev--main-orange?style=flat-square
[link_license]: LICENSE
[link_packagist]: https://packagist.org/packages/laravel-ready/open-google-translate