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 2w 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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

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://avatars.githubusercontent.com/u/52879600?v=4)[Dinesh Suthar](/maintainers/decodewebin)[@decodewebin](https://github.com/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

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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