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 Rafa Alves
by Durand 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": { "raffaalves/bing-translation": "dev-master" }
Next, run composer update
to download it., (*2)
or, (*3)
$ composer require raffaalves/bing-translation
Finally, add the service provider to app/config/app.php
, within the providers
array., (*4)
'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., (*5)
This package is a laravel 4 port of the Microsoft Bing Translation PHP wrapper. Instructions can be found here: Microsoft Bing Translation PHP wrapper, (*6)
$text = 'Hello world!'; $translatedText = Bing::translate( $text, "en", "fr" ); dd($translatedText);
Port of the Bing Translate PHP wrapper for laravel 4.2
MIT
laravel translation laravel4 translate bing translate