2017 © Pedro Peláez
 

library bing-translation

Port of the Bing Translate PHP wrapper for laravel 4

image

ronster/bing-translation

Port of the Bing Translate PHP wrapper for laravel 4

  • Friday, November 8, 2013
  • by Ronster
  • Repository
  • 1 Watchers
  • 3 Stars
  • 162 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-4-Bing-Translation-Library

Installation

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'
)

Configuration

Run php artisan config:publish Ronster/bingtranslation to publish the package config file. Add your API key and your done., (*4)

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, (*5)

Example

$text = 'Hello world!';
$translatedText = Bing::translate( $text, "en", "nl" );
dd($translatedText);

The Versions

08/11 2013

dev-master

9999999-dev

Port of the Bing Translate PHP wrapper for laravel 4

  Sources   Download

The Requires

 

by Ronnie Visser

laravel translation laravel4 translate bing translate