PHPackages                             wbtranslator/yii2-wbt - 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. wbtranslator/yii2-wbt

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

wbtranslator/yii2-wbt
=====================

Yii plugin for WBTranslator

v0.1.0(8y ago)1211MITPHPPHP ^7

Since Aug 9Pushed 8y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

WBTranslator Plugin Yii2
========================

[](#wbtranslator-plugin-yii2)

#### Installation by composer

[](#installation-by-composer)

```
composer require wbtranslator/yii2-wbt

```

#### Set configs for plugin

[](#set-configs-for-plugin)

If you are using basic version, set your default language in `console.php`.

```
 $config = [
     ...
     'language' => 'ru',
     ...
 ];

```

If you are using Advanced template, set default language in `common/main.php` or in `console/main.php`.

Add wbt\_plugin to your bootstrap config in console app

```
 $config = [
     ...
    'bootstrap' => ['log', 'wbt_plugin'],
     ...
 ];

```

Add configs for plugin in the same config file, `$config` array.

```
 'modules' => [
         ...
         'wbt_plugin' => [
             'class' => wbtranslator\wbt\WbtPlugin::class,
             'langMap' => [
                 'PhpMessageSource' => [
                     'basic' => '@app/messages',
                 ]
             ],
             'apiKey' => 'your_project_api_key'
         ],
         ...
     ],

```

In config option `langMap` you can customise your translations storage.

In config option `PhpMessageSource` in section `basic` you must write your project name.

If you are using Advanced template, and you have more then one default storage with your translations, you can add it's all to `PhpMessageSource` config option.

```
 'modules' => [
         ...
         'wbt_plugin' => [
             'class' => wbtranslator\wbt\WbtPlugin::class,
             'langMap' => [
                 'PhpMessageSource' => [
                     'common' => '@common/messages',
                     'common' => '@common/my-messages',
                     'frontend' => '@frontend/messages',
                     'backend' => '@backend/messages',
                     'console' => '@console/messages',
                 ]
             ],
             'apiKey' => 'your_project_api_key'
         ],
         ...
     ],

```

In plugin option `PhpMessageSource` key - is the name of your application and application folder, value - is path to your translation folder in this application.

Also you can extract your translations from database.

```
 'modules' => [
         ...
         'wbt_plugin' => [
             'class' => wbtranslator\wbt\WbtPlugin::class,
             'langMap' => [
                 'DbMessageSource' => [
                    'messageTable' => 'message',
                    'sourceMessageTable' => 'source_message'
                 ],
             ],
             'apiKey' => 'your_project_api_key'
         ],
         ...
     ],

```

In options `messageTable`, `sourceMessageTable` you can fill out your custom tables for translations.

```
'wbt_plugin' => [
             ...
             'apiKey' => 'your_project_api_key'
             ...
         ],

```

`apiKey` - is required option, that you can find in API section of your project.

\###Set folders permissions with translations to write access from server

```
$ chmod -R 775 ./resources/lang/
```

#### Use web interfase

[](#use-web-interfase)

#### Send abstractions to WBTranslator from console command

[](#send-abstractions-to-wbtranslator-from-console-command)

```
php yii  wbt_plugin/wbt/export

```

#### Get abstractions from WBTranslator and save them to lang directorys

[](#get-abstractions-from-wbtranslator-and-save-them-to-lang-directorys)

```
php yii  wbt_plugin/wbt/import

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3176d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30408954?v=4)[WBTranslator](/maintainers/wbtranslator)[@wbtranslator](https://github.com/wbtranslator)

---

Top Contributors

[![skalozub-oleg](https://avatars.githubusercontent.com/u/25196895?v=4)](https://github.com/skalozub-oleg "skalozub-oleg (12 commits)")[![yushni](https://avatars.githubusercontent.com/u/28793117?v=4)](https://github.com/yushni "yushni (3 commits)")[![oskalo](https://avatars.githubusercontent.com/u/8845145?v=4)](https://github.com/oskalo "oskalo (1 commits)")[![thibulko](https://avatars.githubusercontent.com/u/1410834?v=4)](https://github.com/thibulko "thibulko (1 commits)")

---

Tags

translationsyii2 wbt

### Embed Badge

![Health badge](/badges/wbtranslator-yii2-wbt/health.svg)

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

###  Alternatives

[punic/punic

PHP-Unicode CLDR

1543.0M30](/packages/punic-punic)[uran1980/yii2-translate-panel

Yii2 Translate Panel makes the translation of your application awesome!

2518.3k1](/packages/uran1980-yii2-translate-panel)[yiimaker/yii2-translatable

Translatable behavior aggregates logic of linking translations to the primary model

1535.1k1](/packages/yiimaker-yii2-translatable)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4821.5k](/packages/erag-laravel-lang-sync-inertia)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.6k](/packages/acclaro-translations)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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