2017 © Pedro Peláez
 

library bing-translation

Port of the Bing Translate PHP wrapper for laravel 4.2

image

sputinyk/bing-translation

Port of the Bing Translate PHP wrapper for laravel 4.2

  • Tuesday, June 16, 2015
  • by sputinyk
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,084 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel-4-Bing-Translation-Library

Copied from Laravel 4 Bing Translation Library, but with support to Laravel 4.2+

Installation

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

Configuration

Run php artisan config:publish Sputinyk/bing-translation 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

16/06 2015

dev-master

9999999-dev

Port of the Bing Translate PHP wrapper for laravel 4.2

  Sources   Download

MIT

The Requires

 

laravel translation laravel4 translate bing translate