PHPackages                             bluora/laravel-yandex-translate - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. bluora/laravel-yandex-translate

ActiveLibrary[Localization &amp; i18n](/categories/localization)

bluora/laravel-yandex-translate
===============================

Translate a word or text to a given language using Yandex Translation service.

v1.0.3(9y ago)924.4k—0%2MITPHPPHP &gt;=5.3.0

Since Jul 22Pushed 9y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Yandex Translate Provider for Laravel 5
=======================================

[](#yandex-translate-provider-for-laravel-5)

[![Latest Stable Version](https://camo.githubusercontent.com/5b5468bf595d2a6e1cdd66692ac9c85b3b169b45b85a616a184729b62557e746/68747470733a2f2f706f7365722e707567782e6f72672f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f762f737461626c652e737667)](https://packagist.org/packages/bluora/laravel-yandex-translate) [![Total Downloads](https://camo.githubusercontent.com/ea384089db9c094cb21d4caab0364104b15246c5c49c70ef909628703893efcb/68747470733a2f2f706f7365722e707567782e6f72672f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f646f776e6c6f6164732e737667)](https://packagist.org/packages/bluora/laravel-yandex-translate) [![Latest Unstable Version](https://camo.githubusercontent.com/c0a8af5fb62fb1a2dbad107c1525e6544be19b34864d8b9050b07f1a1f0e6a46/68747470733a2f2f706f7365722e707567782e6f72672f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f762f756e737461626c652e737667)](https://packagist.org/packages/bluora/laravel-yandex-translate) [![License](https://camo.githubusercontent.com/56cf460cc4d3a4cabdf7035abf5ad58f9a78641a980a93c578fb47eb0d3fc4ba/68747470733a2f2f706f7365722e707567782e6f72672f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f6c6963656e73652e737667)](https://packagist.org/packages/bluora/laravel-yandex-translate)

[![Build Status](https://camo.githubusercontent.com/ff3302b6ac92eed874c76f58aaac926b29e354a0278fa1c27b718616c23f9c12/68747470733a2f2f7472617669732d63692e6f72672f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bluora/laravel-yandex-translate) [![StyleCI](https://camo.githubusercontent.com/b31b81c0c81b078caeaf5ca2b1ab5abcb9be6ef7fb4fa501d5e5d86ad7eaadf4/68747470733a2f2f7374796c6563692e696f2f7265706f732f36333930383137352f736869656c64)](https://styleci.io/repos/63908175) [![Test Coverage](https://camo.githubusercontent.com/438ba3e76488bd1ec5cd2610ff2b2f0909a1a11cc94b92be30aa24c6e954beef/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/bluora/laravel-yandex-translate/coverage) [![Issue Count](https://camo.githubusercontent.com/1d2b7611d5deaa144513fde4dd3127e9fc891f5346db4b21232bea7527de6947/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/bluora/laravel-yandex-translate) [![Code Climate](https://camo.githubusercontent.com/8ddc2d0e666d952d9a6608b408e3deb45c7b614bf24a75898551a87c52956718/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f626c756f72612f6c61726176656c2d79616e6465782d7472616e736c6174652f6261646765732f6770612e737667)](https://codeclimate.com/github/bluora/laravel-yandex-translate)

### This package is compatible with Laravel 5.

[](#this-package-is-compatible-with-laravel-5)

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

[](#installation)

Install using composer:

```
composer require bluora/laravel-yandex-translate ~1.0

```

In `config/app.php`:

Update the providers section with:

```
'providers' => [
    ...
    Bluora\Yandex\Providers\YandexTranslateServiceProvider::class,
)
```

Update the aliases section with:

```
'aliases' => [
    ...
    'YandexTranslate' => Bluora\Yandex\Facades\YandexTranslateFacade::class,
]
```

In `config/services.php`:

Add a new third party entry:

```
return [
    ...
    'yandex-translate' => [
        'key' => env('YANDEX_TRANSLATE_KEY', ''),
    ]
];
```

You can then add YANDEX\_TRANSLATE\_KEY=myapihere to your .env file.

Usage
-----

[](#usage)

```
echo YandexTranslate::translate('Hello world', 'en', 'ru');
echo YandexTranslate::translate('Hello world!', 'en', 'fr');
echo YandexTranslate::translate('Hello world!', false, 'fr');
echo YandexTranslate::translate('Hello world!', false, 'fr')->getOriginalLanguage();
print_r(YandexTranslate::translate(['Hello world!', 'I love you'], 'en', 'fr'));
print_r(YandexTranslate::translate([22 => 'Hello world!', 30 => 'I love you'], 'en', 'fr'));
print_r(YandexTranslate::translate(['first_word' => 'Hello world!', 'second_word' => 'I love you'], 'en', 'fr'));
```

Would output:

```
Привет мир
Bonjour tout le monde!
Bonjour tout le monde!
en
Array
(
    [0] => Bonjour tout le monde!
    [1] => Je vous aime
)
Array
(
    [22] => Bonjour tout le monde!
    [30] => Je vous aime
)
Array
(
    ['first_word'] => Bonjour tout le monde!
    ['second_word'] => Je vous aime
)

```

\##Yandex API Key

You can get your API key [here](http://api.yandex.com/key/form.xml?service=trnsl).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

3581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (27 commits)")

---

Tags

laraveltranslationyandex

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.7k](/packages/stevegrunwell-lost-in-translation)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

2512.5k](/packages/zachleigh-laravel-lang-bundler)[igaster/laravel-translate-eloquent

Description

403.4k](/packages/igaster-laravel-translate-eloquent)

PHPackages © 2026

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