Package Data | |
---|---|
Maintainer Username: | netojose |
Maintainer Contact: | sputinykster@gmail.com (José Neto) |
Package Create Date: | 2014-06-22 |
Package Last Update: | 2015-06-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:09:22 |
Package Statistics | |
---|---|
Total Downloads: | 1,092 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 1 |
######Copied from Laravel 4 Bing Translation Library, but with support to Laravel 4.2+
Install this package through Composer. To your composer.json
file, add:
"require-dev": {
"sputinyk/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(
// ...
'Sputinyk\BingTranslation\BingTranslationServiceProvider'
)
Run php artisan config:publish Sputinyk/bing-translation
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);