PHPackages                             maniakalen/yii2-dbtranslate - 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. maniakalen/yii2-dbtranslate

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

maniakalen/yii2-dbtranslate
===========================

Translation package for database storage of translations

2.1.18(6y ago)049proprietaryPHP &gt;=5.4.0

Since Oct 30Compare

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

READMEChangelog (10)Dependencies (2)Versions (34)Used By (0)

yii2-translations
=================

[](#yii2-translations)

PHP db translations engine

The package is also available in packagist: "maniakalen/yii2-dbtranslate"

To enable the module inside the yii2 you need to define the module in the main config module part:

```
'translations' => [
    'class' => 'maniakalen\i18n\Module'
],

```

You also need to add the module key to the bootstrap list:

```
'bootstrap' => [..., 'translations'],

```

Then you will need to run the module migrations

```
yii migrate/up --migrationPath="@translations/migrations/"

```

The categories are automatically registered in the translation system when module is bootstrapped.

In project when you have translations in database you can retreive by using:

```
Yii::t('', '');

```

Admin interface can be configured for Menu widget for example as:

```
[
    'label' => function() { return Yii::t('yii', 'Translations control'); },
    'url' => ['/translations/admin/languages'],
    'visible' => function() { return Yii::$app->user->can('backend/translations/access'); },
    'active' => function(ActionEvent $event) {
        return strpos($event->action->getUniqueId(), 'translations/admin') === 0;
    },
    'items' => [
        [
            'label' => function() { return Yii::t('yii', 'Languages control'); },
            'url' => ['/translations/admin/languages'],
            'active' => function(ActionEvent $event) {
                return strpos($event->action->getUniqueId(), 'languages') !== false;
            },
        ],
        [
            'label' => function() { return Yii::t('yii', 'Translations control'); },
            'url' => ['/translations/admin/translations'],
            'active' => function(ActionEvent $event) {
                return strpos($event->action->getUniqueId(), 'admin/translations') !== false;
            },
        ]
    ]
]

```

But you will need to provide the functionality to execute the inline callback methods. For example I use a class like MenuBehavior which has a beforeAction event and parses this configuration to a correct Menu config.

TODO: Include module for modal confirmation window

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity69

Established project with proven stability

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 ~28 days

Recently: every ~0 days

Total

33

Last Release

2302d ago

Major Versions

1.1.0 → 2.0.12017-11-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4747524?v=4)[Petar Georgiev](/maintainers/maniakalen)[@maniakalen](https://github.com/maniakalen)

---

Tags

php

### Embed Badge

![Health badge](/badges/maniakalen-yii2-dbtranslate/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k65](/packages/skeeks-cms)[pharaonic/laravel-locations

Laravel - Countries\[States/Cities, Currency, Phone Code, Languages, Capital\] &amp; Continents &amp; Timezones.

112.8k1](/packages/pharaonic-laravel-locations)

PHPackages © 2026

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