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

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

decodewebin/yandex-language-translate
=====================================

A laravel package to translate message into different languages using yandex's free translate api

111PHP

Since Jul 25Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yandex-language-translate
=========================

[](#yandex-language-translate)

Package to translate message into different languages.

SETUP
-----

[](#setup)

Install via composer

`composer require decodewebin/yandex-language-translate`

Get Yandex language translate FREE api key from here:

Add variables in ENV file

`YANDEX_TRANSLATE_ENDPOINT=https://translate.yandex.net/api/v1.5/tr.json`

and

`YANDEX_TRANSLATE_API_KEY=YOUR_API_KEY_HERE`

---

Run Command

`php artisan vendor:publish --tag=yandex_config`

---

Run Database Migration Command

`php artisan migrate` and

Run Language Seeder Command

`php artisan db:seed --class="Decodewebin\YandexTranslate\Database\Seeds\LanguageSeeder"`

Testing on the fly
------------------

[](#testing-on-the-fly)

Open `localhost:8000/translate`

Testing in your application
---------------------------

[](#testing-in-your-application)

You can use translation endpoint in your application too.

Go to web.php and add the following code

`Route::get('/test-translate',function (){ dd(\Decodewebin\YandexTranslate\Static_Functions\Yandex::translate('Hello World','en','pt')); });`

or in your controller, add USE the package functions like it

`use Decodewebin\YandexTranslate\Static_Functions\Yandex; ``class YourController extends Controller ``{`

`   public function your_function()`
`{`

`       dd(Yandex::translate("Hello World","en","ru");)`
`}`

`}`

### Format

[](#format)

`Yandex::translate(STRING_TO_TRANSLATE ORIGINAL_LANGUAGE_CODE, LANGUAGE_CODE_TO_TRANSLATE_INTO)`

This function returns a json object as follows

`{`

` "translated": "Olá Mundo",`
` "source_language_code": "en"`

`}`

If you liked this package then do follow me on

- [My personal blog](https://decodeweb.in)
- [Medium](https://medium.com/@decodeweb)
- [Instagram](https://www.instagram.com/decodeweb_in/)
- [Slideshare](https://www.slideshare.net/dineshsuthar92)
- [FreeCodeCamp](https://www.freecodecamp.org/forum/u/decodeweb/summary)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 64.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/c7846d3b7ade6d2e0ebc36ed87c885001750f140faeb9baa38b2a7869efd0d16?d=identicon)[decodewebin](/maintainers/decodewebin)

---

Top Contributors

[![dinesh-suthar-winchester](https://avatars.githubusercontent.com/u/56951256?v=4)](https://github.com/dinesh-suthar-winchester "dinesh-suthar-winchester (9 commits)")[![dineshsuthar92](https://avatars.githubusercontent.com/u/10216940?v=4)](https://github.com/dineshsuthar92 "dineshsuthar92 (3 commits)")[![decodewebin](https://avatars.githubusercontent.com/u/52879600?v=4)](https://github.com/decodewebin "decodewebin (2 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.0k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M491](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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