PHPackages                             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. yandex/translate-api

ActiveLibrary[API Development](/categories/api)

yandex/translate-api
====================

Client for Yandex.Translate API

1.5.2(10y ago)1322.4M—7.8%22[5 issues](https://github.com/yandex-php/translate-api/issues)10MITPHPPHP &gt;=5.3

Since Aug 4Pushed 9y ago17 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (10)

Yandex.Translate API
====================

[](#yandextranslate-api)

[![Latest Stable Version](https://camo.githubusercontent.com/ca77355b8b3ad24457951596975fbf3a81f46f12ff1aa11d07abb1886d0c2fae/68747470733a2f2f706f7365722e707567782e6f72672f79616e6465782f7472616e736c6174652d6170692f762f737461626c652e737667)](https://packagist.org/packages/yandex/translate-api) [![Total Downloads](https://camo.githubusercontent.com/00a761226fe4f0475499dc264de1cad415df71ce726b308fc392de2cdd273987/68747470733a2f2f706f7365722e707567782e6f72672f79616e6465782f7472616e736c6174652d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/yandex/translate-api) [![Latest Unstable Version](https://camo.githubusercontent.com/9f107427f3708745f05716f4054b3022bf0da09635dddd9926b094107f78e07e/68747470733a2f2f706f7365722e707567782e6f72672f79616e6465782f7472616e736c6174652d6170692f762f756e737461626c652e737667)](https://packagist.org/packages/yandex/translate-api) [![License](https://camo.githubusercontent.com/281a59bbff67ec9ab0118bb84bca004c30f050c8c1b5e4e8480285eb37a8cf8c/68747470733a2f2f706f7365722e707567782e6f72672f79616e6465782f7472616e736c6174652d6170692f6c6963656e73652e737667)](https://packagist.org/packages/yandex/translate-api)

[Api reference](http://api.yandex.com/translate/doc/dg/concepts/About.xml)

Versioning
----------

[](#versioning)

Package version corresponds to the version of the API.

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

[](#installation)

Add into your `composer.json`:

```
{
  "require": {
    "yandex/translate-api": "1.5.x"
  }
}
```

Usage
-----

[](#usage)

[Get your own api key](http://api.yandex.com/key/form.xml?service=trnsl)

```
use Yandex\Translate\Translator;
use Yandex\Translate\Exception;

try {
  $translator = new Translator($key);
  $translation = $translator->translate('Hello world', 'en-ru');

  echo $translation; // Привет мир

  echo $translation->getSource(); // Hello world;

  echo $translation->getSourceLanguage(); // en
  echo $translation->getResultLanguage(); // ru
} catch (Exception $e) {
  // handle exception
}
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity57

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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.

###  Release Activity

Cadence

Every ~178 days

Total

3

Last Release

3948d ago

PHP version history (2 changes)1.5PHP ~5.3

1.5.2PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6d118888226cce791825447185d662b37874fb3b08cccc3be44d9b911cc2b09?d=identicon)[nkt](/maintainers/nkt)

---

Top Contributors

[![iamwavecut](https://avatars.githubusercontent.com/u/239034?v=4)](https://github.com/iamwavecut "iamwavecut (3 commits)")[![berejant](https://avatars.githubusercontent.com/u/6256227?v=4)](https://github.com/berejant "berejant (1 commits)")[![ivannis](https://avatars.githubusercontent.com/u/754477?v=4)](https://github.com/ivannis "ivannis (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/yandex-translate-api/health.svg)](https://phpackages.com/packages/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)
