Download the PHP package jcorry/gootranslate without Composer
On this page you can find all versions of the php package jcorry/gootranslate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jcorry/gootranslate
More information about jcorry/gootranslate
Files in jcorry/gootranslate
Package gootranslate
Short Description Simple API wrapper for Google Translate (REST) API
License DBAD
Homepage https://github.com/Jcorry/GooTranslate
Informations about the package gootranslate
GooTranslate
[![Latest Version on Packagist][ico-version]][link-packagist] ![Software License][ico-license] [![Build Status][ico-travis]][link-travis] [![Quality Score][ico-code-quality]][link-code-quality] [![Total Downloads][ico-downloads]][link-downloads]
Simple wrapper for Google Translate (REST) API. Includes a Laravel 5 Service Provider and Facade.
Install
Via Composer
Or
Add your Google API key to .env
GOOGLE_API_KEY=YOUR-KEY-VALUE-HERE
Add provider to your app/config/app.php providers:
Jcorry\GooTranslate\GooTranslateServiceProvider::class
Optional (recommended)
Add alias to app/config/app.php to use facade
'GooTranslate' => Jcorry\GooTranslate\GooTranslateFacade::class
Usage
List available languages...
GooTranslate::languages();
Translate
GooTranslate::translate('Here is a string to translate', 'zu');
Results in...
bash
$ composer test
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [John Corry][link-author]
- [All Contributors][link-contributors]
## License
The DBAD License (DBAD). Please see [License File](LICENSE.md) for more information.
[ico-version]: https://img.shields.io/packagist/v/Jcorry/GooTranslate.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/jcorry/gootranslate/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/Jcorry/GooTranslate.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/Jcorry/GooTranslate.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/Jcorry/GooTranslate.svg?style=flat-square
[ico-license]: https://img.shields.io/packagist/l/Jcorry/GooTranslate.svg?style=flat-square
[link-packagist]: https://packagist.org/packages/Jcorry/GooTranslate
[link-travis]: https://travis-ci.org/jcorry/gootranslate
[link-scrutinizer]: https://scrutinizer-ci.com/g/Jcorry/GooTranslate/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/Jcorry/GooTranslate
[link-downloads]: https://packagist.org/packages/Jcorry/GooTranslate
[link-author]: https://github.com/:author_username
[link-contributors]: ../../contributors