PHPackages                             aekkapun/yii2-bs4-checkbox - 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. aekkapun/yii2-bs4-checkbox

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

aekkapun/yii2-bs4-checkbox
==========================

Yii2 widget for awesome-bootstrap4-checkbox

013PHP

Since Jan 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aekkapun/yii2-bs4-checkbox)[ Packagist](https://packagist.org/packages/aekkapun/yii2-bs4-checkbox)[ RSS](/packages/aekkapun-yii2-bs4-checkbox/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 widget - Awesome Bootstrap Checkbox
========================================

[](#yii2-widget---awesome-bootstrap-checkbox)

This yii2 extension is a wrapper for the [Awesome Bootstrap Checkbox &amp; Radios plugin](https://github.com/flatlogic/awesome-bootstrap-checkbox)

[![Code Climate](https://camo.githubusercontent.com/b493dfcd22167b6f4a706d5b8ac53c4779f0e0b0365d0971fa11ecf651086e3a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f626f6f6b696e2f796969322d617765736f6d652d626f6f7473747261702d636865636b626f782f6261646765732f6770612e737667)](https://codeclimate.com/github/bookin/yii2-awesome-bootstrap-checkbox)[![Total Downloads](https://camo.githubusercontent.com/bc622d88918c1afe4e8e1b2d50644f1dff77e5c90e324607d71822bd98e6b27b/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d617765736f6d652d626f6f7473747261702d636865636b626f782f646f776e6c6f616473)](https://packagist.org/packages/bookin/yii2-awesome-bootstrap-checkbox)[![Latest Unstable Version](https://camo.githubusercontent.com/fdc2ff6ba9ceb8ab5f3f3792b651aa3e3b40a1411ebadc28cf2fd4fb271ef8a5/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d617765736f6d652d626f6f7473747261702d636865636b626f782f762f756e737461626c65)](https://packagist.org/packages/bookin/yii2-awesome-bootstrap-checkbox)[![License](https://camo.githubusercontent.com/850921b2545997688827b514cc23ead91081486c0286e22987fb6d595f26d6bf/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e2f796969322d617765736f6d652d626f6f7473747261702d636865636b626f782f6c6963656e7365)](https://packagist.org/packages/bookin/yii2-awesome-bootstrap-checkbox)

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

[](#installation)

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

To install, either run

```
$ php composer.phar require bookin/yii2-awesome-bootstrap-checkbox "@dev"

```

or add

```
"bookin/yii2-awesome-bootstrap-checkbox": "@dev"

```

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

Requires
--------

[](#requires)

This extension require [awesome-bootstrap-checkbox](https://github.com/flatlogic/awesome-bootstrap-checkbox), [yii2-bootstrap](http://www.yiiframework.com/doc-2.0/ext-bootstrap-index.html) and [font-awesome](https://fortawesome.github.io/Font-Awesome/)

Usage
-----

[](#usage)

```
use bookin\aws\checkbox\AwesomeCheckbox;

// ActiveForm & model - default checkbox
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname());

// ActiveForm & model - change type to radio
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'type'=>AwesomeCheckbox::TYPE_RADIO, // default type AwesomeCheckbox::TYPE_CHECKBOX
]);

// ActiveForm & model - change style (you can use STYLE_DEFAULT, STYLE_PRIMARY, STYLE_SUCCESS, STYLE_INFO, STYLE_WARNING, STYLE_DANGER - it is bootstrap colors)
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'style'=>AwesomeCheckbox::STYLE_SUCCESS,
]);

// ActiveForm & model - circle checkbox with style
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'type'=>AwesomeCheckbox::TYPE_CHECKBOX, //optional string default type TYPE_CHECKBOX
    'style'=>[
        AwesomeCheckbox::STYLE_CIRCLE,
        AwesomeCheckbox::STYLE_SUCCESS
    ],
]);

// ActiveForm & model - checkbox list
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'type'=>AwesomeCheckbox::TYPE_CHECKBOX, //optional string default type TYPE_CHECKBOX
    'style'=>AwesomeCheckbox::STYLE_PRIMARY,
    'list'=>[ // array data
        'id1'=>'item1',
        'id2'=>'item2'
    ]
]);

// ActiveForm & model - radio list
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'style'=>AwesomeCheckbox::STYLE_PRIMARY,
    'list'=>[ // array data
        'id1'=>'item1',
        'id2'=>'item2'
    ]
]);

// ActiveForm & model - disabled option
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'options'=>[
        'disabled'=>true
    ]
]);

// ActiveForm & model - set value and uncheck
echo $form->field($model, 'attribute')->widget(AwesomeCheckbox::classname(),[
    'options'=>[
        'value'=>5,
        'uncheck'=>7
    ]
]);

// By name - default checkbox
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - default radio
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - change style
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'style'=>AwesomeCheckbox::STYLE_PRIMARY,
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - circle checkbox with style
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'style'=>[AwesomeCheckbox::STYLE_CIRCLE, AwesomeCheckbox::STYLE_PRIMARY],
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - checked
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'checked' => true,
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - disabled
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'checked' => true,
    'options'=>[
        'disabled'=>true,
        'label'=>'Checkbox'
    ]
]);

// By name - list checkbox
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'list'=>[ // array data
        'id1'=>'item1',
        'id2'=>'item2'
    ],
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - list radio
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'type'=>AwesomeCheckbox::TYPE_RADIO,
    'list'=>[ // array data
        'id1'=>'item1',
        'id2'=>'item2'
    ],
    'options'=>[
        'label'=>'Checkbox'
    ]
]);

// By name - checked list checkbox
echo AwesomeCheckbox::widget([
    'name'=>'test',
    'checked' => 'id1', // you can use string or array with values for list
    'list'=>[ // array data
        'id1'=>'item1',
        'id2'=>'item2'
    ],
    'options'=>[
        'label'=>'Checkbox'
    ]
]);
```

[![Bitdeli Badge](https://camo.githubusercontent.com/43eec7b483659d2d6cef32dcaabe7e7bc758da5cd45410f0073b29db63670825/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f626f6f6b696e2f796969322d617765736f6d652d626f6f7473747261702d636865636b626f782f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.8% 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://avatars.githubusercontent.com/u/7983323?v=4)[aekkapun sriwong](/maintainers/aekkapun)[@aekkapun](https://github.com/aekkapun)

---

Top Contributors

[![bookin](https://avatars.githubusercontent.com/u/537882?v=4)](https://github.com/bookin "bookin (31 commits)")[![aekkapun](https://avatars.githubusercontent.com/u/7983323?v=4)](https://github.com/aekkapun "aekkapun (8 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (2 commits)")[![gb5256](https://avatars.githubusercontent.com/u/324658?v=4)](https://github.com/gb5256 "gb5256 (1 commits)")

### Embed Badge

![Health badge](/badges/aekkapun-yii2-bs4-checkbox/health.svg)

```
[![Health](https://phpackages.com/badges/aekkapun-yii2-bs4-checkbox/health.svg)](https://phpackages.com/packages/aekkapun-yii2-bs4-checkbox)
```

###  Alternatives

[djoudi/laravel-h5p

H5P Plugin for Laravel platform - Updated for Laravel 12

221.6k](/packages/djoudi-laravel-h5p)

PHPackages © 2026

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