PHPackages                             yii2-extensions/selectize - 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. yii2-extensions/selectize

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

yii2-extensions/selectize
=========================

Selectize widget for Yii Framework 2

0.1.1(2y ago)1204mitPHPPHP &gt;=8.1CI passing

Since Feb 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yii2-extensions/selectize)[ Packagist](https://packagist.org/packages/yii2-extensions/selectize)[ RSS](/packages/yii2-extensions-selectize/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (0)

 [ ![](https://camo.githubusercontent.com/cc75562bca6e54e98046e4fb187ef8d96c997a8f31c6f4d2f6ed0c816413b47a/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f7969695f6c6f676f5f6c696768742e737667) ](https://github.com/yii2-extensions/selectize)

Selectize.
==========

[](#selectize)

 [ ![php-version](https://camo.githubusercontent.com/cfe9179013aaeb962182231f5cc56946d96d3c7356e64008b58bad1025cfb1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e312d373837434235) ](https://www.php.net/releases/8.1/en.php) [ ![PHPUnit](https://github.com/yii2-extensions/selectize/actions/workflows/build.yml/badge.svg) ](https://github.com/yii2-extensions/selectize/actions/workflows/build.yml) [ ![PHPUnit](https://github.com/yii2-extensions/selectize/actions/workflows/compatibility.yml/badge.svg) ](https://github.com/yii2-extensions/selectize/actions/workflows/compatibility.yml) [ ![Codecov](https://camo.githubusercontent.com/8bbb5bf0d649859b9399dd5b5274bf3411ff157dcebd650b4550493a8a6ad14a/68747470733a2f2f636f6465636f762e696f2f67682f796969322d657874656e73696f6e732f73656c656374697a652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4d4630585547564c5943) ](https://codecov.io/gh/yii2-extensions/selectize) [ ![Infection](https://camo.githubusercontent.com/43c11d9bc3526a412e9f84e14570922e8ec030d0fb4cdb440df5fc027e188e47/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969322d657874656e73696f6e7325324673656c656374697a652532466d61696e) ](https://dashboard.stryker-mutator.io/reports/github.com/yii2-extensions/selectize/main)

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

[](#installation)

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

Either run

```
composer require --prefer-dist yii2-extensions/selectize:^0.1
```

or add

```
"yii2-extensions/selectize": "^0.1"
```

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

Usage
-----

[](#usage)

### Dropdown list

[](#dropdown-list)

```
use Yii2\Extension\Selectize\Selectize;

Selectize::widget(
    [
        'attribute' => 'tags',
        'items' => ['foo', 'bar'],
        'model' => new SelectizeModel(), // your model
    ],
);
```

### Text input

[](#text-input)

```
use Yii2\Extension\Selectize\Selectize;

Selectize::widget(
    [
        'attribute' => 'tags',
        'items' => ['foo', 'bar'],
        'model' => new SelectizeModel(), // your model
        'type' => Selectize::TYPE_TEXT, // `Selectize::TYPE_SELECT`, `Selectize::TYPE_TEXT`
    ],
);
```

### Properties of the widget

[](#properties-of-the-widget)

PropertyTypeDescriptionDefault`attribute``string`The attribute associated with this widget.`null``clientOptions``array`The options for the underlying Selectize JS plugin.`[]``items``array`Items to be displayed in the dropdown list.`[]``loadUrl``string`The URL that will return JSON data.`null``model``Model`The data model that this widget is associated with.`null``options``array`The HTML attributes for the widget container tag.`[]``queryParam``string`The name of the parameter that will be sent to the server with the search query.`query``type``string`The type of the widget.`Selectize::TYPE_SELECT`Quality code
------------

[](#quality-code)

[![static-analysis](https://github.com/yii2-extensions/selectize/actions/workflows/static.yml/badge.svg)](https://github.com/yii2-extensions/selectize/actions/workflows/static.yml)[![phpstan-level](https://camo.githubusercontent.com/5cb322768cf6be272de6246267f22cbd24eb4ed00e1953844bd8901e53191fe3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2532306c6576656c2d372d626c7565)](https://github.com/yii2-extensions/selectize/actions/workflows/static.yml)[![StyleCI](https://camo.githubusercontent.com/7e3b514bd2644545113ed25a9791a418450965a9f6589b75acd82a3535253170/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3732303731383130382f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/720718108?branch=main)

Support versions Yii2
---------------------

[](#support-versions-yii2)

[![Yii20](https://camo.githubusercontent.com/eb75eedd3cbc9159c862871d7ba5a079f2d8843e186c4365f72e55b402076f4b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969693225323076657273696f6e2d322e302d626c7565)](https://github.com/yiisoft/yii2/tree/2.0.49.3)[![Yii22](https://camo.githubusercontent.com/f946cb5d9010fb3cc3f9d9530b51fee224bdbabe1345dd3f090dfbca82446217/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969693225323076657273696f6e2d322e322d626c7565)](https://github.com/yiisoft/yii2/tree/2.2)

Testing
-------

[](#testing)

[Check the documentation testing](docs/testing.md) to learn about testing.

Our social networks
-------------------

[](#our-social-networks)

[![Twitter](https://camo.githubusercontent.com/d077c362ac639792171af8bc002ee827816733dfc0925f70b557e6d151022226/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747769747465722d666f6c6c6f772d3144413146323f6c6f676f3d74776974746572266c6f676f436f6c6f723d314441314632266c6162656c436f6c6f723d3535353535353f7374796c653d666c6174)](https://twitter.com/Terabytesoftw)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/524d2b46690f41fce7188d369488a35e7624e6c5a264d82aacd08548bfd156ab?d=identicon)[terabytesoftw](/maintainers/terabytesoftw)

---

Top Contributors

[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (17 commits)")

---

Tags

selectizewidgetyii2yii2-extensionsyii2widgetselectize

###  Code Quality

TestsPHPUnit

Code StyleECS

### Embed Badge

![Health badge](/badges/yii2-extensions-selectize/health.svg)

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

###  Alternatives

[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20144.4k11](/packages/softark-yii2-dual-listbox)[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)
