PHPackages                             hiqdev/yii2-language - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hiqdev/yii2-language

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

hiqdev/yii2-language
====================

Yii2 module for language switching

0.2.0(5y ago)1126.5k3[1 issues](https://github.com/hiqdev/yii2-language/issues)1BSD-3-ClausePHP

Since Oct 24Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/hiqdev/yii2-language)[ Packagist](https://packagist.org/packages/hiqdev/yii2-language)[ Docs](https://github.com/hiqdev/yii2-language)[ RSS](/packages/hiqdev-yii2-language/feed)WikiDiscussions master Synced today

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

Yii2 Language
=============

[](#yii2-language)

**Yii2 module for language switching**

[![Latest Stable Version](https://camo.githubusercontent.com/3afcac40ee2cffe8165226351c5b1ce4a71dad2fd57062f85376d7cf8dfe8579/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d6c616e67756167652f762f737461626c65)](https://packagist.org/packages/hiqdev/yii2-language)[![Total Downloads](https://camo.githubusercontent.com/65a16fbc7cf4b90cb785e523e0fdec634d9615a1d7584232675e988853e054b7/68747470733a2f2f706f7365722e707567782e6f72672f6869716465762f796969322d6c616e67756167652f646f776e6c6f616473)](https://packagist.org/packages/hiqdev/yii2-language)[![Build Status](https://camo.githubusercontent.com/e44432f5cd6de5d62bdff618db40878fb816edb7ba9d9763937c62cdbc6f70bc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869716465762f796969322d6c616e67756167652e737667)](https://travis-ci.org/hiqdev/yii2-language)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/bf665d454d0d26ea79a03c530aa3a33be2f5610559fdf9f50c6450e95ec687d3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6869716465762f796969322d6c616e67756167652e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-language/)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9604161a6e6895eeb85ae0063109158f147093faf1b3796bb576d65f102b903a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869716465762f796969322d6c616e67756167652e737667)](https://scrutinizer-ci.com/g/hiqdev/yii2-language/)[![Dependency Status](https://camo.githubusercontent.com/2c909d7ed968c55448b4d8c93ab8e78ba390b57ed183c10a04de376e937fbcf2/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f6869716465763a796969322d6c616e67756167652f6465762d6d61737465722f62616467652e737667)](https://www.versioneye.com/php/hiqdev:yii2-language/dev-master)

This [Yii2](http://yiiframework.com/) extension provides language switching module.

This extension provides:

- module with controller and language select action
    - auto detection of acceptable languages
    - saving selected language to cookie
- widget for displaying language selection menu

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

[](#installation)

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

Either run

```
php composer.phar require "hiqdev/yii2-language"
```

or add

```
"hiqdev/yii2-language": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

Example application configuration:

```
    'modules' => [
        'language' => [
            'class' => \hiqdev\yii2\merchant\Module::class,
            'languages' => [
                'en' => 'English',
                'ru' => 'Русский',
            ],
        ],
    ],
```

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2016-2017, HiQDev ()

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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 ~562 days

Total

4

Last Release

1851d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/790fd24da129907d373559f60c6994f664f06e3f518502c03580cc9f3594615e?d=identicon)[hiqdev](/maintainers/hiqdev)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (42 commits)")[![tafid](https://avatars.githubusercontent.com/u/3338188?v=4)](https://github.com/tafid "tafid (5 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (4 commits)")

---

Tags

hacktoberfestlanguageyii2moduleswitcherwidgetextenstion

### Embed Badge

![Health badge](/badges/hiqdev-yii2-language/health.svg)

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

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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