PHPackages                             computy/yii2-chipselect - 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. computy/yii2-chipselect

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

computy/yii2-chipselect
=======================

Chip Select widget for Yii2

1.0.0(1y ago)00BSD-3-ClausePHPPHP &gt;=8.1

Since Jul 12Pushed 1y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii2 Chip Select Widget
=======================

[](#yii2-chip-select-widget)

This widget can be used in place of an input field to give the user a graphical way to select/deselect items.

Options
-------

[](#options)

The ChipSelect widget offers the following options:

```
computy\chipselect\widgets\ChipSelect::widget([
    /*
    The ID is only used if no ID is set in the $containerOptions, in order to generate a container ID.
    If this is not set, this defaults to chip_select_ and a random integer.
    */
    'id' => 'my_cool_input',
    /*
    The name for the hidden inputs generated by the widget. '[]' is automatically appended to it.
    This must be set, otherwise an InvalidConfigException is thrown.
    */
    'name' => 'myCoolInput',
    /*
    The values to provide for the chip select, provided as a mapping from the actual value to the displayed name.
    */
    'data' => [
        1 => 'Option One',
        'two' => 'Option Two'
    ],
    /*
    The initial selected options.
    */
    'value' => [1],
    /*
    JavaScript logic to run whenever a chip is selected or deselected.
    This can alternatively be a `yii\web\JsExpression`.
    */
    'jsOnChange' =>  [
        'class' => 'my-chip'
    ],
    /*
    HTML options to apply to the hidden inputs.
    */
    'inputOptions' => [
        'class' => 'my-secret-input'
    ],
    /*
    HTML options to apply to the object containing the chip select.
    */
    'containerOptions' => [
        'class' => 'my-chipselect-container'
    ],
])
```

Styling
-------

[](#styling)

All chips can be accessed through the CSS class `.cpty-select-chip`.

Selected and unselected versions of chips get a `.chip-selected` or `.chip-unselected` class respectively.

Alternatively, the containers holding the chips can be accessed using `.unselected-container` and `.selected-container`.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

667d ago

### Community

Maintainers

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

---

Top Contributors

[![chriscpty](https://avatars.githubusercontent.com/u/123160582?v=4)](https://github.com/chriscpty "chriscpty (2 commits)")

---

Tags

yii2yii2 selectyii2-chip-select

### Embed Badge

![Health badge](/badges/computy-yii2-chipselect/health.svg)

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

###  Alternatives

[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[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)
