PHPackages                             soap/yii2-language-switcher - 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. soap/yii2-language-switcher

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

soap/yii2-language-switcher
===========================

Yii language switcher to be used with codemix/yii2-localeurls

v1.0.0(4y ago)2649[1 PRs](https://github.com/soap/yii2-language-switcher/pulls)MITPHPPHP &gt;= 5.4.0

Since Aug 8Pushed 2y ago1 watchersCompare

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

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

yii2-language-switcher
======================

[](#yii2-language-switcher)

[![Latest Stable Version](https://camo.githubusercontent.com/6c3cac8f048a7b16f3b1251f4927dfb36fe5f7c38f4805422cc1b2dc3916dc32/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f796969322d6c616e67756167652d73776974636865722f762f737461626c65)](https://packagist.org/packages/soap/yii2-language-switcher)[![Total Downloads](https://camo.githubusercontent.com/d0cd9e2a41225b07fbe866787fe1665a80f4a25e0408c97fcf202b70a897b5ef/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f796969322d6c616e67756167652d73776974636865722f646f776e6c6f616473)](https://packagist.org/packages/soap/yii2-language-switcher)[![Latest Unstable Version](https://camo.githubusercontent.com/53624b73fcf6014baa7b9c0647220c7b5410c9ac5c051d486faef01b907ba510/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f796969322d6c616e67756167652d73776974636865722f762f756e737461626c65)](https://packagist.org/packages/soap/yii2-language-switcher)[![License](https://camo.githubusercontent.com/54fb83e74a6ad69cb4585e197fc965951a224f4e27937d8a432338531a33352c/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f796969322d6c616e67756167652d73776974636865722f6c6963656e7365)](https://packagist.org/packages/soap/yii2-language-switcher)[![composer.lock](https://camo.githubusercontent.com/44c1eef50961e49295ff8c338ca20944f77b37d15949269fc0764e2894c8923d/68747470733a2f2f706f7365722e707567782e6f72672f736f61702f796969322d6c616e67756167652d73776974636865722f636f6d706f7365726c6f636b)](https://packagist.org/packages/soap/yii2-language-switcher)

Yii2 language switcher to use with [codemix/yii2-localeurls](https://github.com/codemix/yii2-localeurls).

Thanks to [lajax/yii2-language-picker](https://github.com/lajax/yii2-language-picker) for some code/assets and inspiration.

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

[](#installation)

Install through composer is the preferable way.

```
composer require soap/yii2-language-switcher

```

How to use
----------

[](#how-to-use)

First you have to make setting for codemix/yii2-localeurls. Please refer to his document. Then put the widget in your layout.

```
