PHPackages                             cinghie/yii2-multilanguage - 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. cinghie/yii2-multilanguage

ActiveYii2-extension

cinghie/yii2-multilanguage
==========================

Multi Language support for Yii2 Framework.

2.0.2(7y ago)96.0k72BSD-3-ClausePHP

Since Mar 15Pushed 3y ago2 watchersCompare

[ Source](https://github.com/cinghie/yii2-multilanguage)[ Packagist](https://packagist.org/packages/cinghie/yii2-multilanguage)[ Docs](https://github.com/cinghie/yii2-multilanguage)[ RSS](/packages/cinghie-yii2-multilanguage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (2)

Yii2 MultiLanguage
==================

[](#yii2-multilanguage)

[![License](https://camo.githubusercontent.com/dced43c82a81b7d72d951cf13ffc2beefad24723f5750363d637bf44d9ab2861/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d756c74696c616e67756167652e737667)](https://camo.githubusercontent.com/dced43c82a81b7d72d951cf13ffc2beefad24723f5750363d637bf44d9ab2861/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d756c74696c616e67756167652e737667)[![Latest Stable Version](https://camo.githubusercontent.com/d2ea8c9589457719b5f115914abece719614d9a9e1c2edc711ac13ada16e2fcd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d756c74696c616e67756167652e737667)](https://camo.githubusercontent.com/d2ea8c9589457719b5f115914abece719614d9a9e1c2edc711ac13ada16e2fcd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d756c74696c616e67756167652e737667)[![Latest Release Date](https://camo.githubusercontent.com/5e257a366a0b7d646353198ca8f7ebf3c923e6e40430b13d2a69655c11398e20/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d756c74696c616e67756167652e737667)](https://camo.githubusercontent.com/5e257a366a0b7d646353198ca8f7ebf3c923e6e40430b13d2a69655c11398e20/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d756c74696c616e67756167652e737667)[![Latest Commit](https://camo.githubusercontent.com/c4a5db19b77bd25daf77a00203baec0b277d2182c21200579fb3de596db453f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d756c74696c616e67756167652e737667)](https://camo.githubusercontent.com/c4a5db19b77bd25daf77a00203baec0b277d2182c21200579fb3de596db453f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d756c74696c616e67756167652e737667)[![Total Downloads](https://camo.githubusercontent.com/6d331f59d08287d6700dcd3d2a67ab10fd840f5a01b7157fb02a79bc4d750be5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63696e676869652f796969322d6d756c74696c616e67756167652e737667)](https://packagist.org/packages/cinghie/yii2-multilanguage)

Multi Language support for Yii2 Framework based on this post on Official Forum:

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

[](#installation)

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

Either run

```
php composer.phar require cinghie/yii2-multilanguage "*"

```

or add this line to the require section of your `composer.json` file.

```
"cinghie/yii2-multilanguage": "*"

```

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

[](#configuration)

Set in Configuration File:

```
// Language Settings
'language'   => 'en',
'sourceLanguage' => 'en_GB',

```

Make sure you have set the parameter 'language': the default language will be that

Set URL Manager in 'component' Configuration File:

```
// Url Manager
'urlManager' => [
    'class' => 'codemix\localeurls\UrlManager',
    'languages' => ['en', 'it', 'fr', 'de', 'es'], // List all supported languages here
    'enablePrettyUrl' => true,
    'showScriptName' => false,
],

```

Images
------

[](#images)

Copy the img folder from the project root to your web folders to see flag's images

Widgets
-------

[](#widgets)

You can load the MultiLanguage Widget in the your view like this:

```

```

There are 4 params in the Widget:

- Widget Type can be classic or selector
- Image Type can be classic or rounded
- Width in pixel of the flags
- The Calling Controller (Do not Edit)

Changelog
---------

[](#changelog)

- Version 2.0.2 - Adding options to add current Lang on widgets
- Version 2.0.1 - Adding Ca, Ch, In, Ne, Ru, Us flags
- Version 2.0.0 - Refactoring project adding Yii2 Locale URLs:
- Version 1.2.0 - Minor improvements
- Version 1.1.2 - Fixing error to extends yii Widget problem
- Version 1.1.1 - Update Copyright and license
- Version 1.1.0 - Bug Fixed not home View
- Version 1.0.0 - Initial Release

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~186 days

Recently: every ~304 days

Total

8

Last Release

2777d ago

Major Versions

v1.2.0 → v2.0.02016-01-13

### Community

Maintainers

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

---

Top Contributors

[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (83 commits)")

---

Tags

yii2 multilanguageyii2 languageyii2 langyii2 translate

### Embed Badge

![Health badge](/badges/cinghie-yii2-multilanguage/health.svg)

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

###  Alternatives

[cinghie/yii2-traits

Yii2 Traits

116.9k8](/packages/cinghie-yii2-traits)

PHPackages © 2026

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