PHPackages                             phpnt/yii2-icheck - 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. phpnt/yii2-icheck

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

phpnt/yii2-icheck
=================

Yii2 ICheck

0.0.2(8y ago)716.1k↓12.5%4[1 PRs](https://github.com/phpnt/yii2-icheck/pulls)1MITPHPPHP &gt;=5.4.0

Since May 1Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (2)Used By (1)

phpNT - Yii2 ICheck
===================

[](#phpnt---yii2-icheck)

[![Latest Stable Version](https://camo.githubusercontent.com/d7f6da2d681592f9f1081c664bcb389445467f9ece06cad4d1045dbebd2b8397/68747470733a2f2f706f7365722e707567782e6f72672f7068706e742f796969322d69636865636b2f762f737461626c65)](https://packagist.org/packages/phpnt/yii2-icheck) [![Total Downloads](https://camo.githubusercontent.com/3b8f726db3274a7564da999864dc14b0b2cda54489b2ac5faa552fd3a0b4ce2a/68747470733a2f2f706f7365722e707567782e6f72672f7068706e742f796969322d69636865636b2f646f776e6c6f616473)](https://packagist.org/packages/phpnt/yii2-icheck) [![Latest Unstable Version](https://camo.githubusercontent.com/c5d29fd90282d479e0a5e511b08bb1dd4cd2550ca4ec256ce63556fc9490d3b3/68747470733a2f2f706f7365722e707567782e6f72672f7068706e742f796969322d69636865636b2f762f756e737461626c65)](https://packagist.org/packages/phpnt/yii2-icheck) [![License](https://camo.githubusercontent.com/2e47c99e6a30261139cdc9d7245f6d25640563bc1275cb82550732e69c170e3f/68747470733a2f2f706f7365722e707567782e6f72672f7068706e742f796969322d63686172746a732f6c6963656e7365)](https://packagist.org/packages/phpnt/yii2-icheck)

### Описание:

[](#описание)

### Стилизованный чекбоксы и радиокнопки.

[](#стилизованный-чекбоксы-и-радиокнопки)

### [DEMO](http://phpnt.com/widget/yii2-icheck)

[](#demo)

---

### - [Поддержать phpNT](http://phpnt.com/donate/index)

[](#--поддержать-phpnt)

---

### Социальные сети:

[](#социальные-сети)

- [Канал YouTube](https://www.youtube.com/c/phpnt)
- [Группа VK](https://vk.com/phpnt)
- [Группа facebook](https://www.facebook.com/Phpnt-595851240515413/)

---

Установка:

---

```
php composer.phar require "phpnt/yii2-icheck" "*"

```

или

```
composer require phpnt/yii2-icheck

```

или добавить в composer.json файл

```
"phpnt/yii2-icheck": "*"

```

### Представление:

[](#представление)

---

```
use phpnt\ICheck\ICheck;
```

```
STYLE_MIMIMAL (цвета для STYLE_MIMIMAL - minimal (черный), red, green, blue, aero, grey, orange, yellow, pink, purple)

    field($model, 'checkbox', ['template' => '{label} {input}'])->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX,
        'style'  => ICheck::STYLE_MIMIMAL,
        'color'  => 'green'                  // цвет
    ]) ?>
    field($model, 'checkbox2')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_MIMIMAL,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'minimal',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'checkbox3')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_MIMIMAL,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'red',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO,
        'style'  => ICheck::STYLE_MIMIMAL,
        'color'  => 'green'                  // цвет
    ]) ?>

    field($model, 'radio2')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_MIMIMAL,
        'items'    => [1 => 'Вася2', 2 => 'Катя2', 3 => 'Жора'],
        'color'  => 'purple',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio3')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_MIMIMAL,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'blue',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

STYLE_SQUARE (цвета для STYLE_SQUARE - square (черный), red, green, blue, aero, grey, orange, yellow, pink, purple)

    field($model, 'checkbox4', ['template' => '{label} {input}'])->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX,
        'style'  => ICheck::STYLE_SQUARE,
        'color'  => 'square'                  // цвет
    ]) ?>
    field($model, 'checkbox5')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_SQUARE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'green',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'checkbox6')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_SQUARE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'red',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio4')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO,
        'style'  => ICheck::STYLE_SQUARE,
        'color'  => 'blue'                  // цвет
    ]) ?>
    field($model, 'radio5')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_SQUARE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'yellow',               // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'radio6')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_SQUARE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'aero',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

STYLE_FLAT (цвета для STYLE_SQUARE - flat (черный), red, green, blue, aero, grey, orange, yellow, pink, purple)

    field($model, 'checkbox7', ['template' => '{label} {input}'])->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX,
        'style'  => ICheck::STYLE_FLAT,
        'color'  => 'flat'                  // цвет
    ]) ?>
    field($model, 'checkbox8')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_FLAT,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'green',                // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'checkbox9')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_FLAT,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'red',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio7')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO,
        'style'  => ICheck::STYLE_FLAT,
        'color'  => 'blue'                      // цвет
    ]) ?>
    field($model, 'radio8')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_FLAT,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'yellow',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'radio9')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_FLAT,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'aero',                     // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

STYLE_LINE (цвета для STYLE_LINE - line (черный), red, green, blue, aero, grey, orange, yellow, pink, purple)

    field($model, 'checkbox10')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_LINE,
        'items'    => [1 => 'Вася'],
        'color'  => 'yellow',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return '
                        '.$label.'';
            },
        ]]) ?>
    field($model, 'checkbox11')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_LINE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'red',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return '
                        '.$label.'';
            },
        ]]) ?>

    field($model, 'radio10')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_LINE,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'color'  => 'pink',                  // цвет
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return '
                        '.$label.'';
            },
        ]]) ?>

STYLE_POLARIS

    field($model, 'checkbox12', ['template' => '{label} {input}'])->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX,
        'style'  => ICheck::STYLE_POLARIS,
    ]) ?>
    field($model, 'checkbox13')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_POLARIS,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'checkbox14')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_POLARIS,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio11')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO,
        'style'  => ICheck::STYLE_POLARIS,
    ]) ?>
    field($model, 'radio12')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_POLARIS,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'radio13')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_POLARIS,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

STYLE_FUTURICO

    field($model, 'checkbox15', ['template' => '{label} {input}'])->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX,
        'style'  => ICheck::STYLE_FUTURICO,
    ]) ?>
    field($model, 'checkbox16')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_FUTURICO,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'checkbox17')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_CHECBOX_LIST,
        'style'  => ICheck::STYLE_FUTURICO,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

    field($model, 'radio14')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO,
        'style'  => ICheck::STYLE_FUTURICO,
    ]) ?>
    field($model, 'radio15')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_FUTURICO,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>
    field($model, 'radio16')->widget(ICheck::className(), [
        'type'  => ICheck::TYPE_RADIO_LIST,
        'style'  => ICheck::STYLE_FUTURICO,
        'items'    => [1 => 'Вася', 2 => 'Катя', 3 => 'Жора'],
        'options' => [
            'item' => function ($index, $label, $name, $checked, $value){
                return ' '.$label.'';
            }
        ]]) ?>

```

---

Документация:
=============

[](#документация)

[ICheck](http://icheck.fronteed.com/)
-------------------------------------

[](#icheck)

---

### Лицензия:

[](#лицензия)

### [MIT](https://ru.wikipedia.org/wiki/%D0%9B%D0%B8%D1%86%D0%B5%D0%BD%D0%B7%D0%B8%D1%8F_MIT)

[](#mit)

---

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

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

Every ~227 days

Total

2

Last Release

3077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ef8790bedff67ae354b2d0450ffd1eaccc992bfb880213fdbb22a75e1e2c4d3?d=identicon)[phpnt](/maintainers/phpnt)

---

Top Contributors

[![phpnt](https://avatars.githubusercontent.com/u/10666748?v=4)](https://github.com/phpnt "phpnt (1 commits)")

---

Tags

yii2iCheckphpnt

### Embed Badge

![Health badge](/badges/phpnt-yii2-icheck/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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