PHPackages                             yiithings/yii2-i18n - 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. yiithings/yii2-i18n

Abandoned → [yiithings/yii2-i18n](/?search=yiithings%2Fyii2-i18n)Yii2-extension[Localization &amp; i18n](/categories/localization)

yiithings/yii2-i18n
===================

Internationalization extension for Yii2 framework

090PHP

Since Apr 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yiithings/yii2-i18n)[ Packagist](https://packagist.org/packages/yiithings/yii2-i18n)[ RSS](/packages/yiithings-yii2-i18n/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 I18N
=========

[](#yii2-i18n)

[![Build Status](https://camo.githubusercontent.com/a8697b8f6b67c5cf2ece3239a1509132ec8db2095779a8f52239532f7a9eaf52/68747470733a2f2f7472617669732d63692e6f72672f7969697468696e67732f796969322d6931386e2e737667)](https://travis-ci.org/yiithings/yii2-i18n)[![Latest Stable Version](https://camo.githubusercontent.com/dca1507624e907f3feef2f305a52e4ff7e1e3d5db23b7855ac1cd5ae8f564dbb/68747470733a2f2f706f7365722e707567782e6f72672f7969697468696e67732f796969322d6931386e2f762f737461626c652e737667)](https://packagist.org/packages/yiithings/yii2-i18n)[![Total Downloads](https://camo.githubusercontent.com/4edd1f248d3a7f0bf7b0d82fd25bcec2703be33c1fe954bbd1e36bc48bc4693c/68747470733a2f2f706f7365722e707567782e6f72672f7969697468696e67732f796969322d6931386e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/yiithings/yii2-i18n)[![Latest Unstable Version](https://camo.githubusercontent.com/8ccfa63980338d1eb06357d9d498933332c9ac6573e6ae2e05abfc22cda9fc83/68747470733a2f2f706f7365722e707567782e6f72672f7969697468696e67732f796969322d6931386e2f762f756e737461626c652e737667)](https://packagist.org/packages/yiithings/yii2-i18n)[![License](https://camo.githubusercontent.com/5d5ef06b2396fc68a5711c9da96c1af8f7939e5421e7bc2c26a48c59acd9fe10/68747470733a2f2f706f7365722e707567782e6f72672f7969697468696e67732f796969322d6931386e2f6c6963656e73652e737667)](https://packagist.org/packages/yiithings/yii2-i18n)

Internationalization extension for Yii2 framework.

This extension use Gettext as message source and provide Web GUI(gii) editing message source.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yiithings/yii2-i18n "*"

```

or add

```
"yiithings/yii2-i18n": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Add the component to your application.

```
'components' => [
    'i18n' => [
        'class' => 'yiithings\i18n\I18N'
    ]
]
```

Use functions:

```
echo __('Username');
__('Username'); // with echo
echo _x('Username', 'yii');
_xe('Username', 'yii'); // with echo
```

Edit messages:

Use [PoEdit](https://poedit.net/) create or edit your messages. `.po` and `.mo` files default save path is `@app/messages/`, e.g. `@app/messages/en-US.mo`. If you want to change path rule, please see [GettextMessageSource Class](src/GettextMessageSource.php).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![panlatent](https://avatars.githubusercontent.com/u/4393268?v=4)](https://github.com/panlatent "panlatent (7 commits)")

### Embed Badge

![Health badge](/badges/yiithings-yii2-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/yiithings-yii2-i18n/health.svg)](https://phpackages.com/packages/yiithings-yii2-i18n)
```

###  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)
