PHPackages                             maddoger/yii2-select2 - 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. maddoger/yii2-select2

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

maddoger/yii2-select2
=====================

Yii2 Select2 Widget.

v1.4.2(11y ago)118.8k↓54.6%[1 issues](https://github.com/maddoger/yii2-select2/issues)3BSD-3-ClausePHP

Since Nov 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/maddoger/yii2-select2)[ Packagist](https://packagist.org/packages/maddoger/yii2-select2)[ RSS](/packages/maddoger-yii2-select2/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (10)Used By (3)

Yii2 select2 widget.
====================

[](#yii2-select2-widget)

Select2 widget is a wrapper of [Select2](http://ivaynberg.github.io/select2/) for Yii 2 framework.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist maddoger/yii2-select2 "*"

```

or add

```
"maddoger/yii2-select2": "*"

```

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

Usage
-----

[](#usage)

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

```
use maddoger\widgets\Select2;

echo $form->field($model, 'field')->widget(Select2::className(), [
    'options' => [
        'multiple' => true,
        'placeholder' => 'Choose item'
    ],
    'clientOptions' => [
        'width' => '100%',
    ],
    'items' => [
        'item1',
        'item2',
        ...
    ]
]);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~22 days

Recently: every ~0 days

Total

9

Last Release

4069d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09bde1fb9f0bb0ef7e7b4e6d7d1e346b2c2f1b076bd757ef85722abb37a98000?d=identicon)[maddoger](/maintainers/maddoger)

---

Top Contributors

[![maddoger](https://avatars.githubusercontent.com/u/6214206?v=4)](https://github.com/maddoger "maddoger (18 commits)")

---

Tags

yii2extensionwidget

### Embed Badge

![Health badge](/badges/maddoger-yii2-select2/health.svg)

```
[![Health](https://phpackages.com/badges/maddoger-yii2-select2/health.svg)](https://phpackages.com/packages/maddoger-yii2-select2)
```

###  Alternatives

[conquer/select2

Yii2 Select2 widget

1682.0k4](/packages/conquer-select2)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1359.3k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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