2017 © Pedro Peláez
 

yii2-extension yii2-google-translate-api

Yii2 extension to Google Translate API

image

richweber/yii2-google-translate-api

Yii2 extension to Google Translate API

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

Yii2 extension to Google Translate API

Google Translate API, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

$ php composer.phar require richweber/yii2-google-translate-api "dev-master"

or add, (*4)

"richweber/yii2-google-translate-api": "dev-master"

to the require section of your composer.json file., (*5)

Usage

Identifying your application to Google

If you haven't done so already, create your project's API key by following these steps:, (*6)

  1. Go to the Google Developers Console.
  2. Select a project, or create a new one.
  3. In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure the status is ON for the Google Translate API.
  4. In the sidebar on the left, select Credentials.
  5. To create an API key, click Create new Key and select the appropriate key type. Enter the additional information required for that key type and click Create.

Read more..., (*7)

Component Configuration

'components' => [
    ...
    'translate' => [
        'class' => 'richweber\google\translate\Translation',
        'key' => 'INSERT-YOUR-API-KEY',
    ],
    ...
],
Yii::$app->translate->translate($source, $target, $text);
Yii::$app->translate->discover();
Yii::$app->translate->detect($text);

License

yii2-twitter is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*8)

The Versions

18/02 2015

dev-master

9999999-dev

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

api yii2 google translate

18/02 2015

1.0.0

1.0.0.0

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

api yii2 google translate