Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gnahotelsolutions/laravel-google-translate

Simple wrapper for Google Translate API
https://github.com/gnahotelsolutions/laravel-google-translate

hacktoberfest

Last synced: 1 day ago
JSON representation

Simple wrapper for Google Translate API

Awesome Lists containing this project

README

        

# Google Translate API wrapper for Laravel

[![Latest Version on Packagist](https://img.shields.io/packagist/v/gnahotelsolutions/laravel-google-translate.svg?style=flat-square)](https://packagist.org/packages/gnahotelsolutions/laravel-google-translate)
[![Total Downloads](https://img.shields.io/packagist/dt/gnahotelsolutions/laravel-google-translate.svg?style=flat-square)](https://packagist.org/packages/gnahotelsolutions/laravel-google-translate)
![GitHub Actions](https://github.com/gnahotelsolutions/laravel-google-translate/actions/workflows/main.yml/badge.svg)

A small Laravel package to interact with Google Translate API in an easy way.

## Installation

You can install the package via composer:

```bash
composer require gnahotelsolutions/laravel-google-translate
```

## Usage

```php
$textInSpanish = GoogleTranslate::from('en')->to('es')->translate('Hello there!');
```

### Testing

```bash
composer test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

## Credits

- [David Llop](https://github.com/gnahotelsolutions)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Documentation

- [Official Google Translate Documentation](https://cloud.google.com/translate/docs)

## Laravel Package Boilerplate

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).