PHPackages                             wfstudioru/yii2-yandex-translate-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. wfstudioru/yii2-yandex-translate-api

ActiveYii2-extension[API Development](/categories/api)

wfstudioru/yii2-yandex-translate-api
====================================

Yii2 extension to Yandex Translate API

33.6k1[1 issues](https://github.com/wfstudioru/yii2-yandex-translate-api/issues)1PHP

Since May 2Pushed 11y ago2 watchersCompare

[ Source](https://github.com/wfstudioru/yii2-yandex-translate-api)[ Packagist](https://packagist.org/packages/wfstudioru/yii2-yandex-translate-api)[ RSS](/packages/wfstudioru-yii2-yandex-translate-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Yii2 extension to Yandex Translate API
======================================

[](#yii2-extension-to-yandex-translate-api)

Yandex Translate API

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require wfstudioru/yii2-yandex-translate-api "dev-master"

```

or add

```
"wfstudioru/yii2-yandex-translate-api": "dev-master"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

### Create Yandex API Key (free to use)

[](#create-yandex-api-key-free-to-use)

1. Go to the [Yandex Translate API Site](https://tech.yandex.ru/translate/).
2. Create new API Key.

### Component Configuration

[](#component-configuration)

```
'components' => [
    ...
    'translate' => [
        'class' => 'wfstudioru\translate\Translation',
        'key' => 'INSERT-YOUR-API-KEY',
    ],
    ...
],
```

```
Yii::$app->translate->translate($source, $target, $text);
```

### Usage

[](#usage-1)

```
Yii::$app->translate->translate('en-US', 'ru-RU', 'Hi everybody!');
```

the response would be:

```
array (
    'code' => 200,
    'lang' => 'en-ru',
    'text' => array (
        0 => 'Привет всем!'
                   )
      )
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fed008cb7b1146a80ed20b162d53fefd8cd72406e304a131b0d64d5d0ea6102?d=identicon)[BaBL86](/maintainers/BaBL86)

![](https://www.gravatar.com/avatar/69294fa920879a545b34ad3ae2beed7e5df1fc8ea044d1fd1abf13c6952b2ec8?d=identicon)[wfstudioru](/maintainers/wfstudioru)

---

Top Contributors

[![BaBL86](https://avatars.githubusercontent.com/u/483972?v=4)](https://github.com/BaBL86 "BaBL86 (5 commits)")[![wfstudioru](https://avatars.githubusercontent.com/u/12209459?v=4)](https://github.com/wfstudioru "wfstudioru (1 commits)")

### Embed Badge

![Health badge](/badges/wfstudioru-yii2-yandex-translate-api/health.svg)

```
[![Health](https://phpackages.com/badges/wfstudioru-yii2-yandex-translate-api/health.svg)](https://phpackages.com/packages/wfstudioru-yii2-yandex-translate-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
