PHPackages                             cusodede/yii2-multi-select-widget - 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. cusodede/yii2-multi-select-widget

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

cusodede/yii2-multi-select-widget
=================================

Multiselect Bootstrap widget for Yii2.

1.0.0(8y ago)030121BSD-3-ClausePHP

Since Jan 17Pushed 9mo agoCompare

[ Source](https://github.com/cusodede/yii2-multi-select-widget)[ Packagist](https://packagist.org/packages/cusodede/yii2-multi-select-widget)[ Docs](https://github.com/2amigos/yii2-multi-select-widget)[ RSS](/packages/cusodede-yii2-multi-select-widget/feed)WikiDiscussions master Synced 1mo ago

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

MultiSelect Widget for Yii2
===========================

[](#multiselect-widget-for-yii2)

[![Latest Stable Version](https://camo.githubusercontent.com/75ecfa0b7a77f6dfca5047673dde012d4cdbfc0f7a60015e6371f5c8789adfa0/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d6d756c74692d73656c6563742d7769646765742f76657273696f6e)](https://packagist.org/packages/2amigos/yii2-multi-select-widget)[![Total Downloads](https://camo.githubusercontent.com/952bbd0a6e4f2b062c8e25a4ed3057437f5af18a2c444068261092467f0d10cc/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d6d756c74692d73656c6563742d7769646765742f646f776e6c6f616473)](https://packagist.org/packages/2amigos/yii2-multi-select-widget)[![Build Status](https://camo.githubusercontent.com/32614b0cf89d9fa0b1ef7885b8d600ade4bd360972f8286ef092d836408e4c27/68747470733a2f2f7472617669732d63692e6f72672f32616d69676f732f796969322d6d756c74692d73656c6563742d7769646765742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/2amigos/yii2-multi-select-widget)[![Latest Unstable Version](https://camo.githubusercontent.com/34315c04b5f934d5b15373363c737bf79a8ee83f23bc616e6ef6ea7cfe3ba76b/68747470733a2f2f706f7365722e707567782e6f72672f32616d69676f732f796969322d6d756c74692d73656c6563742d7769646765742f762f756e737461626c65)](//packagist.org/packages/2amigos/yii2-multi-select-widget)
[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b138258b5c69ed3b40967c89caa305c0548f1a35fd9c8e0167874cc745d72977/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f32616d69676f732f796969322d6d756c74692d73656c6563742d7769646765742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/2amigos/multi-select-widget/?branch=master)

This library contains two of the most useful bootstrap multi-select plugins. One is the [MultiSelect Bootstrap plugin](http://davidstutz.github.io/bootstrap-multiselect) from David Stutz and the other is the [MultiSelect.js plugin](http://loudev.com/) from Loudev.

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

[](#installation)

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

Either run

```
php composer.phar require 2amigos/yii2-multi-select-widget "*"

```

or add

```
"2amigos/yii2-multi-select-widget" : "*"
```

to the require section of your application's `composer.json` file.

Usage for MultiSelect Bootstrap Plugin
--------------------------------------

[](#usage-for-multiselect-bootstrap-plugin)

[![Bootstrap multiselect plugin](bootstrap-multiselect.png)](bootstrap-multiselect.png)

**Using a model**

```
use dosamigos\multiselect\MultiSelect;

```

**Using it as standalone widget**

```
echo MultiSelect::widget([
    'id'=>"multiXX",
    "options" => ['multiple'=>"multiple"], // for the actual multiselect
    'data' => [ 0 => 'super', 2 => 'natural'], // data as array
    'value' => [ 0, 2], // if preselected
    'name' => 'multti', // name for the form
    "clientOptions" =>
        [
            "includeSelectAllOption" => true,
            'numberDisplayed' => 2
        ],
]);

```

Usage for MultiSelectListBox Bootstrap Plugin
---------------------------------------------

[](#usage-for-multiselectlistbox-bootstrap-plugin)

[![Bootstrap multiselect plugin](multiselect.png)](multiselect.png)

The functionality to use this plugin is actually the same as its an extension of the previous one. The only thing that changes its use is its set of configuration options.

```
use dosamigos\multiselect\MultiSelectListBox;
use yii\web\JsExpression;

```

Further Information
-------------------

[](#further-information)

I highly recommend you to visit both sites:

- [MultiSelect Bootstrap plugin](http://davidstutz.github.io/bootstrap-multiselect)
- [MultiSelect.js plugin](http://loudev.com/)

Then, check what are the options that would allow you to create one or the other. I have never used both on the same UI and I am not sure whether they can be used together or not. The `MultiSelectListBox` has a different constructor function name but very similar (`multiSelect` vs `multiselect`), but we are not sure whether they are compatible or not.

If you have the experience and willing to share, let us know on the issues and we will update this README file accordingly.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Web development has never been so fun!*[www.2amigos.us](http://www.2amigos.us)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance41

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% 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 ~711 days

Total

3

Last Release

3080d ago

Major Versions

0.1.1 → 1.0.02017-12-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/76ddc43524bb32eb36568e25b6ae283bc25bb51a4572789997909092145af0f5?d=identicon)[pozitronik](/maintainers/pozitronik)

---

Top Contributors

[![pozitronik](https://avatars.githubusercontent.com/u/2357892?v=4)](https://github.com/pozitronik "pozitronik (23 commits)")[![vksee](https://avatars.githubusercontent.com/u/354826?v=4)](https://github.com/vksee "vksee (3 commits)")[![khvalov](https://avatars.githubusercontent.com/u/2668527?v=4)](https://github.com/khvalov "khvalov (2 commits)")[![antonshevelev](https://avatars.githubusercontent.com/u/10631259?v=4)](https://github.com/antonshevelev "antonshevelev (1 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (1 commits)")[![robysottini](https://avatars.githubusercontent.com/u/3207054?v=4)](https://github.com/robysottini "robysottini (1 commits)")

---

Tags

extensionwidgetyiimultiselect

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cusodede-yii2-multi-select-widget/health.svg)

```
[![Health](https://phpackages.com/badges/cusodede-yii2-multi-select-widget/health.svg)](https://phpackages.com/packages/cusodede-yii2-multi-select-widget)
```

###  Alternatives

[evgeniyrru/yii2-slick

Yii2 extension for Slick Carousel

22182.1k3](/packages/evgeniyrru-yii2-slick)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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