PHPackages                             dbfernandes/yii2-icomp-toggle - 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. [Database &amp; ORM](/categories/database)
4. /
5. dbfernandes/yii2-icomp-toggle

ActiveYii2-extension[Database &amp; ORM](/categories/database)

dbfernandes/yii2-icomp-toggle
=============================

1.0.1(8y ago)086MITPHP

Since Jul 14Pushed 8y agoCompare

[ Source](https://github.com/dbfernandes/yii2-icomp-toggle)[ Packagist](https://packagist.org/packages/dbfernandes/yii2-icomp-toggle)[ RSS](/packages/dbfernandes-yii2-icomp-toggle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (3)Used By (0)

yii2-bootstrap-toggle
=====================

[](#yii2-bootstrap-toggle)

Yii2 extension to render bootstrap toggle widget instead of checkbox.

[![Screenshot](screenshot.jpg)](screenshot.jpg)

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

[](#installation)

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

Either run

```
$ php composer.phar require dbfernandes/yii2-icomp-toggle dev-master

```

or add

```
"dbfernandes/yii2-icomp-toggle": "dev-master"

```

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

Usage
-----

[](#usage)

### In active form

[](#in-active-form)

```
use dbfernandes\icomp\ICompToggleWidget;

//...
echo $form->field($model, 'attribute')->widget(ICompToggleWidget::className());
//...
```

### Standalone widget

[](#standalone-widget)

```
use dbfernandes\icomp\ICompToggleWidget;

//...
IcompToggleWidget::widget([
    'name' => 'is_enabled',
    'value' => false,
]);
//...
```

Options
-------

[](#options)

```
ICompToggleWidget::widget([

    /**
     * Wrapper tag name. If set to false no tag will be rendered
     */
    'container' => 'div',

    /**
     * Wrapper HTML attributes
     */
    'containerOptions' => [],

    /**
     * Label when checkbox is checked
     */
    'labelEnabled' => 'Yes',

    /**
     * Label when checkbox is not checked
     */
     'labelDisabled' => 'No',

     /**
      * Additional javascript options to Bootstrap Toggle plugin
      */
      'pluginOptions' => [],
]);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 53.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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3273d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3472503?v=4)[David Fernandes de Oliveira](/maintainers/dbfernandes)[@dbfernandes](https://github.com/dbfernandes)

---

Top Contributors

[![alexeevdv](https://avatars.githubusercontent.com/u/597839?v=4)](https://github.com/alexeevdv "alexeevdv (7 commits)")[![dbfernandes](https://avatars.githubusercontent.com/u/3472503?v=4)](https://github.com/dbfernandes "dbfernandes (6 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/dbfernandes-yii2-icomp-toggle/health.svg)

```
[![Health](https://phpackages.com/badges/dbfernandes-yii2-icomp-toggle/health.svg)](https://phpackages.com/packages/dbfernandes-yii2-icomp-toggle)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11415.8k](/packages/yii2tech-illuminate)[mootensai/yii2-relation-trait

Yii 2 Models load with relation, &amp; transaction save with relation

47229.1k9](/packages/mootensai-yii2-relation-trait)[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

45147.2k1](/packages/nhkey-yii2-activerecord-history)[dmstr/yii2-db

Database extensions

19642.9k6](/packages/dmstr-yii2-db)[spanjeta/yii2-backup

Database Backup and Restore functionality

285.3k1](/packages/spanjeta-yii2-backup)

PHPackages © 2026

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