PHPackages                             humandevice/yii2-header-language-selector - 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. humandevice/yii2-header-language-selector

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

humandevice/yii2-header-language-selector
=========================================

Bootstrap class to set application language by header attribute.

1.0(9y ago)15511MITPHP

Since Mar 10Pushed 9y ago2 watchersCompare

[ Source](https://github.com/HumanDevice/yii2-header-language-selector)[ Packagist](https://packagist.org/packages/humandevice/yii2-header-language-selector)[ RSS](/packages/humandevice-yii2-header-language-selector/feed)WikiDiscussions master Synced 4w ago

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

Header Language Selector
========================

[](#header-language-selector)

Bootstrap class to set application language by header attribute.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist humandevice/yii2-header-language-selector "*"

```

or add

```
"humandevice/yii2-header-language-selector": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your REST API config:

```
return [
    // ...
    'bootstrap' => [
        // ...
        'languageSelector' => [
            'class' => 'hd\yii2\bootstrap\LanguageSelector',
            'supportedLanguages' => ['en', 'pl'],
            'defaultLanguage' => 'pl'
        ],
    ],
];

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3399d ago

### Community

Maintainers

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

---

Tags

languageheaderyii2utilsselector

### Embed Badge

![Health badge](/badges/humandevice-yii2-header-language-selector/health.svg)

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

###  Alternatives

[lajax/yii2-translate-manager

Translation management extension for Yii 2

220590.7k13](/packages/lajax-yii2-translate-manager)[devgroup/yii2-multilingual

Allows building yii2 apps for multiple languages using regional URL's and domains

152.6k2](/packages/devgroup-yii2-multilingual)[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)
