PHPackages                             aranytoth/yii2-general-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. aranytoth/yii2-general-translate

ActiveYii2-extension[Localization &amp; i18n](/categories/localization)

aranytoth/yii2-general-translate
================================

This is an experiment project to translate contents without modify its tables. It connects localized rows by relation table

013PHP

Since Jun 5Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 general multilanguage component
====================================

[](#yii2-general-multilanguage-component)

**This is an experimental project far from done**

General multilanguage managemenet for Yii 2

Introduction
------------

[](#introduction)

This modul tries to give a general multilanguage solution for existing projects.

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

[](#installation)

Via [Composer](http://getcomposer.org/download/)

```
composer require aranytoth/yii2-general-translate

```

Or manually add to composer.json

```
"aranytoth/yii2-general-translate": "dev-master"

```

Migration
---------

[](#migration)

Run the following command in Terminal for database migration:

```
yii migrate --migrationPath=@aranytoth/Yii2GeneralTranslate/migrations

```

Configuration
-------------

[](#configuration)

YiiGeneralTranslate registers it's own module to . If you want to register manually, set 'createLangModule' =&gt; false in your params.php. Default translate module can't be reach in advanced template's frontend.

Usage
-----

[](#usage)

Current languages can be create/edit at translate/language. You can enable/disable/edit existing languages or create new.

If you like to enable multilanguage on your model:

1. change your model class extend from \\yii\\db\\ActiveRecord to \\aranytoth\\Yii2GeneralTranslate\\models\\LangModel
2. Place aranytoth\\Yii2GeneralTranslate\\components\\LangWidget::widget(\['model' =&gt; $model\]) widget to create / update form. This enables a buttons with active languages

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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/8e5c5530a718bfebc2eef2041ac1f94593be657e6d41f4313afb0c3d17001448?d=identicon)[aranytoth](/maintainers/aranytoth)

---

Top Contributors

[![aranytothtibor](https://avatars.githubusercontent.com/u/47325778?v=4)](https://github.com/aranytothtibor "aranytothtibor (3 commits)")[![aranytoth](https://avatars.githubusercontent.com/u/15130950?v=4)](https://github.com/aranytoth "aranytoth (1 commits)")

### Embed Badge

![Health badge](/badges/aranytoth-yii2-general-translate/health.svg)

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