PHPackages                             mardoc/yii2-language-select - 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. mardoc/yii2-language-select

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

mardoc/yii2-language-select
===========================

A widget to render language select witch svg icons

01PHP

Since May 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Mardoc/yii2-language-select)[ Packagist](https://packagist.org/packages/mardoc/yii2-language-select)[ RSS](/packages/mardoc-yii2-language-select/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Yii2 Language Select widget.
============================

[](#yii2-language-select-widget)

### Supported languages (ISO 639-1)

[](#supported-languages-iso-639-1)

and some [i18n-locales](https://github.com/ladjs/i18n-locales) languages

Support Codes: cs, cs-CZ, da, da-DK, de, de-DE, en, us, en-GB, en-US, gb, es, fi, fi-FI, fr, fr-FR, hu, hu-HU, id, id-ID, is, is-IS, it, it-IT, ja, ja-JP, lt, lt-LT, lv, ms, ms-MY, my, nl, nl-NL, no, nn-NO, pl, pl-PL, pt, pt-PT, ro, ro-RO, ru, ru-RU, sv, sv, sv-SE, th, th-TH, uk, uk-UA, vi, zh, zh-CN.

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

[](#installation)

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

Either run

```
php composer.phar require  mardoc/yii2-language-select "*"

```

or add

```
"mardoc/yii2-language-select": "*"

```

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

Basic usage
-----------

[](#basic-usage)

[![Single column example](./resources/video.gif?raw=true)](./resources/video.gif?raw=true)

For example you want to have an ability of entering several emails of user on profile page. In this case you can use yii2-multiple-input widget like in the following code

```
use mardoc\LanguageSelect;
...
