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

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

apollo/yii2-select2
===================

Select2

166CSS

Since Feb 25Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#This widget for you select2 v3.4.5 () Usage

```
/*  $form->field($model, 'users_to')->widget(\Apollo\Select2Field::className(), [

        'clientOptions' => [
            'allowClear' => true,
            'language' => 'ru',
            'maximumSelectionSize'=>'3',
            'multiple' => 'false',
            'minimumInputLength' => '3',
              'placeholder'=>"Search for a movie",
            'ajax' => [
                'url' => Yii::$app->urlManager->createUrl('URL'),
                'dataType' => 'json',
                'data' => new yii\web\JsExpression('function (term) {

                                                    return {
                                                        username: term, // search term

                                                        } ;
 }'),

                'results' => new yii\web\JsExpression('function (data) { // parse the results into the format expected by Select2.
 var myResults = [];
$.each(data, function (index, item) {
 myResults.push({
 id: item.id,
  text: item.FIO + " " + (item.login)
 });

});
                                            return {

                                              results: myResults
                                                 };
 }')

            ],

        ]

    ])
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbfece9bf70655e7c7f845c989622464c5fb092c2833c4333f9a4659ae1a5415?d=identicon)[vov4ik08](/maintainers/vov4ik08)

---

Top Contributors

[![vov4ik08](https://avatars.githubusercontent.com/u/2761022?v=4)](https://github.com/vov4ik08 "vov4ik08 (8 commits)")

### Embed Badge

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

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

###  Alternatives

[zservices/query

Pacote para consultas em serviços do governo.

131.1k](/packages/zservices-query)

PHPackages © 2026

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