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

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

daxslab/yii2-selectize-widget
=============================

The selectize.js widget for the Yii framework

1.2.0(4y ago)06BSD-3-ClausePHP

Since Apr 3Pushed 4y agoCompare

[ Source](https://github.com/daxslab/yii2-selectize-widget)[ Packagist](https://packagist.org/packages/daxslab/yii2-selectize-widget)[ Docs](https://github.com/2amigos/yii2-selectize-widget)[ RSS](/packages/daxslab-yii2-selectize-widget/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (11)Used By (0)

Selectize JS Widget for Yii2
============================

[](#selectize-js-widget-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/c6ce788d728634226781417eeac6cdba7c74e1637892fd82d280dc256ac08dd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d73656c656374697a652d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-selectize-widget/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ca29f9e05781ecd164ab0fd92d5533075dd7f6204c2238c7e6771f599d2c38db/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d73656c656374697a652d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-selectize-widget)[![Coverage Status](https://camo.githubusercontent.com/35c9b0a723de72057c931c0e6f2b50e90f61bb74eec8012e8682a393145d5615/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d73656c656374697a652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-selectize-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/00a4e7f4e54c969aa62762aed21b3b012062796ac6151c29d6a5e0c9f85a64c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d73656c656374697a652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-selectize-widget)[![Total Downloads](https://camo.githubusercontent.com/787f279245d73f4f0764f6eb46a4bf51c8e0e5bd14f9bbfad237bca706497b3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d73656c656374697a652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-selectize-widget)

[Selectize](https://selectize.github.io/selectize.js/) is an extensible jQuery-based custom &lt;select&gt; UI control. It's useful for tagging, contact lists, country selectors, and so on. It clocks in at around ~7kb (gzipped). The goal is to provide a solid &amp; usable experience with a clean and powerful API.

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

[](#installation)

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

Either run

```
$ composer require 2amigos/yii2-selectize-widget:~1.0
```

or add

```
"2amigos/yii2-selectize-widget": "~1.0"

```

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

Usage
-----

[](#usage)

Selectize has lots of configuration options. For further information, please check the Selectize plugin [website](https://selectize.github.io/selectize.js/).

### Text input widget

[](#text-input-widget)

To use text input widget add the following to the view

```
use dosamigos\selectize\SelectizeTextInput;

echo SelectizeTextInput::widget([
    'name' => 'tags',
    'value' => 'love, this, game',
    'clientOptions' => [
        // ...
    ],
]);
```

### Dropdown list widget

[](#dropdown-list-widget)

To use dropdown list widget add the following to the view

```
use dosamigos\selectize\SelectizeDropDownList;

echo SelectizeDropDownList::widget([
    'name' => 'tags',
    'items' => ['love', 'this', 'game'],
    'clientOptions' => [
        // ...
    ],
]);
```

Configuration
-------------

[](#configuration)

SelectizeDropDownList extends from [InputWidget](http://www.yiiframework.com/doc-2.0/yii-widgets-inputwidget.html), but have additional properties that can be configured.

PropertyTypeDefaultDescription`loadUrl`string|arraynullOptional. This parameter will be passed to [Url::to](http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html). If set, selectize plugin will be configured to send ajax requests to the defined url to retrieve options. Url must return a valid JSON response.`queryParam`string'query'The name of the request parameter to use on ajax requests`clientOptions`arraynullConfiguration of selectize plugin. This configuration is individual for each selectize instance.Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](https://github.com/2amigos/yii2-selectize-widget/graphs/contributors)

License
-------

[](#license)

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

> [![](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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 90.7% 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 ~363 days

Recently: every ~504 days

Total

9

Last Release

1512d ago

Major Versions

0.1.1 → 1.0.02015-03-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13596248?v=4)[Gabriel Alejandro López López](/maintainers/glpzzz)[@glpzzz](https://github.com/glpzzz)

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

---

Top Contributors

[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (49 commits)")[![Eseperio](https://avatars.githubusercontent.com/u/5459366?v=4)](https://github.com/Eseperio "Eseperio (2 commits)")[![glpzzz](https://avatars.githubusercontent.com/u/13596248?v=4)](https://github.com/glpzzz "glpzzz (1 commits)")[![RangelReale](https://avatars.githubusercontent.com/u/369785?v=4)](https://github.com/RangelReale "RangelReale (1 commits)")[![RusNimex](https://avatars.githubusercontent.com/u/5466843?v=4)](https://github.com/RusNimex "RusNimex (1 commits)")

---

Tags

yii2widgetyiiyii 22amigosselectize

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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