This package provides a simple api to perform translations using the IBM Watson Language Translation service.
To get a better understanding of how this package works read the documentation for Watson Language Translation service first.
Begin by installing this package through Composer.
{
"require": {
"findbrok/laravel-watson-translate": "~1.0"
}
}
Add the WatsonTranslateServiceProvider to your providers array
// config/app.php
'providers' => [
...
FindBrok\WatsonTranslate\WatsonTranslateServiceProvider::class,
];
First publish the configuration file
php artisan vendor:publish --provider="FindBrok\WatsonTranslate\WatsonTranslateServiceProvider"
Set your correct credentials and default configuration for using your IBM Watson Language translation service
config/watson-translate.php
Read the Docs
Twitter: @PercyMamedy
GitHub: percymamedy