PHPackages                             ayaalkaplin/yii2-multilang - 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. ayaalkaplin/yii2-multilang

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

ayaalkaplin/yii2-multilang
==========================

Multilang for Yii2

v0.0.5(7y ago)012MITPHP

Since Feb 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/uraankhayayaal/yii2-multilang)[ Packagist](https://packagist.org/packages/ayaalkaplin/yii2-multilang)[ RSS](/packages/ayaalkaplin-yii2-multilang/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Multilang for Yii2
==================

[](#multilang-for-yii2)

Multilang for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ayaalkaplin/yii2-multilang "*"

```

or add

```
"ayaalkaplin/yii2-multilang": "*"

```

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

Usage
-----

[](#usage)

Be sure that you have lines in urlManager config:

```
'urlManager' => [
    ******
    'enablePrettyUrl' => true,
    'showScriptName' => false,
    ******
]
```

Migrate:

```
php yii migrate --migrationPath=@vendor/ayaalkaplin/yii2-multilang/src/migrations

```

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

```

```

For backend add this URL

```
