ronster / bing-translation
Port of the Bing Translate PHP wrapper for laravel 4
Installs: 167
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 2
pkg:composer/ronster/bing-translation
Requires
- php: >=5.3.0
- illuminate/support: 4.0.x
This package is not auto-updated.
Last update: 2025-10-07 09:06:05 UTC
README
Installation
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' )
Configuration
Run php artisan config:publish Ronster/bingtranslation
to publish the package config file. Add your API key and your done.
Usage
This package is a laravel 4 port of the Microsoft Bing Translation PHP wrapper. Instructions can be found here: Microsoft Bing Translation PHP wrapper
Example
$text = 'Hello world!'; $translatedText = Bing::translate( $text, "en", "nl" ); dd($translatedText);