PHPackages                             russ666/yii2-buttons-group-input - 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. russ666/yii2-buttons-group-input

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

russ666/yii2-buttons-group-input
================================

Yii2 buttons group input

11.0k1PHP

Since Mar 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/russ666/yii2-buttons-group-input)[ Packagist](https://packagist.org/packages/russ666/yii2-buttons-group-input)[ RSS](/packages/russ666-yii2-buttons-group-input/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Usage
=====

[](#usage)

Simple
------

[](#simple)

```
echo \russ666\widgets\ButtonsGroupInput::widget([
    'name' => 'elements',
    'value' => [2,3],
    'items' => [
        1 => 'Element 1',
        2 => 'Element 2',
        3 => 'Element 3',
    ]
]);
```

Form Input
----------

[](#form-input)

```
echo $form->field($model, 'elements')->widget(\russ666\widgets\ButtonsGroupInput::className(), [
    'items' => [
        1 => 'Element 1',
        2 => 'Element 2',
        3 => 'Element 3',
    ]
]);
```

Params
======

[](#params)

type
----

[](#type)

Bootstrap button type. `primary`, `danger` etc.

size
----

[](#size)

Bootstrap button size. `lg`, `xs` etc.

radio
-----

[](#radio)

Flag to use buttons group as radio or checkboxes.

Example
=======

[](#example)

```
echo \russ666\widgets\ButtonsGroupInput::widget([
    'name' => 'elements',
    'value' => [2,3],
    'items' => [
        1 => 'Element 1',
        2 => 'Element 2',
        3 => 'Element 3',
    ],
    'type' => 'danger',
    'size' => 'xs',
    'radio' => false,
]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

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/e9167a3d93d95a8f239bbec35b5e841343daa6c7e7c70a26ea749033998441b5?d=identicon)[russ666](/maintainers/russ666)

---

Top Contributors

[![russ666](https://avatars.githubusercontent.com/u/2082587?v=4)](https://github.com/russ666 "russ666 (3 commits)")

### Embed Badge

![Health badge](/badges/russ666-yii2-buttons-group-input/health.svg)

```
[![Health](https://phpackages.com/badges/russ666-yii2-buttons-group-input/health.svg)](https://phpackages.com/packages/russ666-yii2-buttons-group-input)
```

PHPackages © 2026

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