Package Data | |
---|---|
Maintainer Username: | raffaalves |
Maintainer Contact: | raffa-alves@hotmail.com.br (Rafa Alves) |
Package Create Date: | 2015-01-14 |
Package Last Update: | 2015-01-14 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:03:21 |
Package Statistics | |
---|---|
Total Downloads: | 106 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
######Copied from Laravel 4 Bing Translation Library, but with another autentication
Install this package through Composer. To your composer.json
file, add:
"require-dev": {
"raffaalves/bing-translation": "dev-master"
}
Next, run composer update
to download it.
or
$ composer require raffaalves/bing-translation
Finally, add the service provider to app/config/app.php
, within the providers
array.
'providers' => array(
// ...
'Raffaalves\BingTranslation\BingTranslationServiceProvider'
)
Run php artisan config:publish raffaalves/bing-translation
to publish the package config file. Add your API key and your done.
This package is a laravel 4 port of the Microsoft Bing Translation PHP wrapper. Instructions can be found here: Microsoft Bing Translation PHP wrapper
$text = 'Hello world!';
$translatedText = Bing::translate( $text, "en", "fr" );
dd($translatedText);