Package Data | |
---|---|
Maintainer Username: | Ronster |
Maintainer Contact: | ronsterdj@gmail.com (Ronnie Visser) |
Package Create Date: | 2013-11-07 |
Package Last Update: | 2013-11-08 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-15 15:15:00 |
Package Statistics | |
---|---|
Total Downloads: | 167 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 2 |
Install this package through Composer. To your composer.json
file, add:
"require-dev": {
"ronster/bing-translation": "dev-master"
}
Next, run composer update
to download it.
Finally, add the service provider to app/config/app.php
, within the providers
array.
'providers' => array(
// ...
'Ronster\BingTranslation\BingTranslationServiceProvider'
)
Run php artisan config:publish Ronster/bingtranslation
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", "nl" );
dd($translatedText);