dev-master
9999999-devPort of the Bing Translate PHP wrapper for laravel 4
The Requires
- php >=5.3.0
- illuminate/support 4.0.x
by Ronnie Visser
laravel translation laravel4 translate bing translate
Wallogit.com
2017 © Pedro Peláez
Port of the Bing Translate PHP wrapper for laravel 4
Install this package through Composer. To your composer.json file, add:, (*1)
"require-dev": {
"ronster/bing-translation": "dev-master"
}
Next, run composer update to download it., (*2)
Finally, add the service provider to app/config/app.php, within the providers array., (*3)
'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., (*4)
This package is a laravel 4 port of the Microsoft Bing Translation PHP wrapper. Instructions can be found here: Microsoft Bing Translation PHP wrapper, (*5)
$text = 'Hello world!'; $translatedText = Bing::translate( $text, "en", "nl" ); dd($translatedText);
Port of the Bing Translate PHP wrapper for laravel 4
laravel translation laravel4 translate bing translate