PHPackages                             freesoftwarefactory/yii2-select3 - 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. freesoftwarefactory/yii2-select3

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

freesoftwarefactory/yii2-select3
================================

a specialized jquery based DropDownList component displaying checkboxes as options.

1.0007(8y ago)432.1k↓27.8%2GPL-3.0PHP

Since Oct 6Pushed 8y ago3 watchersCompare

[ Source](https://github.com/freesoftwarefactory/yii2-select3)[ Packagist](https://packagist.org/packages/freesoftwarefactory/yii2-select3)[ Docs](http://github.com/freesoftwarefactory/select3/wiki)[ RSS](/packages/freesoftwarefactory-yii2-select3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)DependenciesVersions (11)Used By (0)

Select3 (yii2-select3)
======================

[](#select3-yii2-select3)

Display a hybrid between a DropDownList and a Multi-selectable checkboxes.

platform: Yii Framework 2.0

author: Cristian Salazar chileshift.cl/freesoftwarefactory

Preview
-------

[](#preview)

[![Preview](example.jpg)](example.jpg)

Usage
-----

[](#usage)

1. Via composer,

```
"require": {
    "php": ">=5.4.0",
	"freesoftwarefactory/yii2-select3": "(put version here)"
},

```

2. In your View

```

```

Receving Values from this Control
---------------------------------

[](#receving-values-from-this-control)

Values are base64+json encoded, that is, when you submits a form using this control then you will have something similar to:

```
eyJvcHQxIjp0cnVlLCJvcHQyIjp0cnVlLCJvcHQzIjpmYWxzZX0=

```

Which is a base64 encoded version of this:

```
 {"opt1":true,"opt2":true,"opt3":false}

```

So, you can just call:

```
$values = json_decode(base64_decode($model->yourAttribute),true);

```

Or... just call :)

```
$values =  Select3Widget::getDecodedValueFrom($model, 'yourAttribute');

```

More functions
--------------

[](#more-functions)

1. load items via javascript by calling:

```
$.fn.select3load($('#widgetid') , { 123 : some , 456 : thing });

```

2. Disable the control by passing:

```
[
    'disable'=>true,
]

```

3. Disable/Check some items at startup by calling

```
[
    'disabledOptions' => ['somekeydisabled'],

    'autoSelectOptions' => ['somekeySelectedFromTheBeginning'],
]

```

4. Javascript events to listen for changes

```
$this->registerJs("
    $(document).on('select3-changed', [], function(e, options, widget){
        console.log('select3-changed', options, widget);
    });
");

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

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 ~0 days

Total

10

Last Release

3141d ago

Major Versions

0.0002 → 1.00002017-10-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/84c1ee8cb7752defef9778c9ffa49ff57421a276b262f8a64477496465758949?d=identicon)[christiansalazar](/maintainers/christiansalazar)

---

Tags

yii2widgetsdropdownlistSelect3

### Embed Badge

![Health badge](/badges/freesoftwarefactory-yii2-select3/health.svg)

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

###  Alternatives

[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1230.5k5](/packages/asinfotrack-yii2-toolbox)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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