dev-master
9999999-devPort of the Bing Translate PHP wrapper for laravel 4.2
MIT
The Requires
- php >=5.3.0
- illuminate/support 4.*
by José Neto
laravel translation laravel4 translate bing translate
Port of the Bing Translate PHP wrapper for laravel 4.2
Install this package through Composer. To your composer.json
file, add:, (*1)
"require-dev": { "sputinyk/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( // ... 'Sputinyk\BingTranslation\BingTranslationServiceProvider' )
Run php artisan config:publish Sputinyk/bing-translation
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.2
MIT
laravel translation laravel4 translate bing translate