PHPackages                             yh/yii2-switchery - 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. yh/yii2-switchery

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

yh/yii2-switchery
=================

switchery for yii2

01271PHP

Since Jan 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pcyanglei/yii2-switchery)[ Packagist](https://packagist.org/packages/yh/yii2-switchery)[ RSS](/packages/yh-yii2-switchery/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

switchery for yii2
==================

[](#switchery-for-yii2)

switchery for yii2 [![images](https://github.com/pcyanglei/yii2-switchery/raw/master/1a5b3a90-d304-40fc-ac54-afdcfd3bfdae.png)](https://github.com/pcyanglei/yii2-switchery/blob/master/1a5b3a90-d304-40fc-ac54-afdcfd3bfdae.png)Installation
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#switchery-for-yii2installation)

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

Either run

```
php composer.phar require --prefer-dist yh/yii2-switchery "dev-master"

```

or add

```
"yh/yii2-switchery": "dev-master"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

view:

```
