Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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