2017 © Pedro Peláez
 

yii2-extension yii2-google-translate-api

Yii2 extension to Google Translate API

image

stratoss/yii2-google-translate-api

Yii2 extension to Google Translate API

  • Friday, August 19, 2016
  • by stratoss
  • Repository
  • 1 Watchers
  • 1 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 31 % Grown

The README.md

original project, (*1)

Yii2 extension to Google Translate API

Google Translate API, (*2)

Installation

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

Either run, (*4)

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

or add, (*5)

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

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

Usage

Identifying your application to Google

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

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

Component Configuration

'components' => [
    ...
    'translate' => [
        'class' => 'stratoss\google\translate\Translation',
        'key' => 'INSERT-YOUR-API-KEY',
    ],
    ...
],
Yii::$app->translate->translate($source, $target, "Hello World");

```php Yii::$app->translate->translate($source, $target, ["Hello World", "Hello, my name is John Doe"]);, (*9)


```php Yii::$app->translate->discover();
Yii::$app->translate->detect($text);

License

yii2-google-translate-api is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*10)

The Versions

19/08 2016

dev-master

9999999-dev

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar stratoss

api yii2 google translate

19/08 2016

1.1.4

1.1.4.0

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar stratoss

api yii2 google translate

27/04 2016

1.1.3

1.1.3.0

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar stratoss

api yii2 google translate

27/04 2016

1.1.2

1.1.2.0

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar stratoss

api yii2 google translate

27/04 2016

1.1.1

1.1.1.0

Yii2 extension to Google Translate API

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar stratoss

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