PHPackages                             loveorigami/yii2-bootstrap-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. loveorigami/yii2-bootstrap-toggle

ActiveYii2-extension

loveorigami/yii2-bootstrap-toggle
=================================

Yii2 bootstrap-toggle widget

1.1(10y ago)4190.4k↓11.7%9GPL-3.0+PHP

Since Aug 13Pushed 9y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Bootstrap Toggle widget for Yii 2
=================================

[](#bootstrap-toggle-widget-for-yii-2)

This extension provides the [Bootstrap-toggle](http://www.bootstraptoggle.com) integration for the Yii2 framework.

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

[](#installation)

This extension requires [Bootstrap-toggle](http://www.bootstraptoggle.com)

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

Either run

```
php composer.phar require --prefer-dist loveorigami/yii2-bootstrap-toggle "*"

```

or add

```
"loveorigami/yii2-bootstrap-toggle": "*"

```

to the require section of your composer.json.

General Usage
-------------

[](#general-usage)

```
use lo\widgets\Toggle;

Toggle::widget(
    [
        'name' => 'status', // input name. Either 'name', or 'model' and 'attribute' properties must be specified.
        'checked' => true,
        'options' => [], // checkbox options. More data html options [see here](http://www.bootstraptoggle.com)
    ]
)

```

or with active form as

```

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~273 days

Total

2

Last Release

3658d ago

### Community

Maintainers

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

---

Top Contributors

[![loveorigami](https://avatars.githubusercontent.com/u/98164?v=4)](https://github.com/loveorigami "loveorigami (9 commits)")[![Rafalsky](https://avatars.githubusercontent.com/u/1750771?v=4)](https://github.com/Rafalsky "Rafalsky (1 commits)")

---

Tags

yii2widgetbootstraptoggle

### Embed Badge

![Health badge](/badges/loveorigami-yii2-bootstrap-toggle/health.svg)

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

###  Alternatives

[kartik-v/yii2-widget-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[bizley/ajaxdropdown

Bootstrap dropdown list with AJAX data.

1524.8k](/packages/bizley-ajaxdropdown)

PHPackages © 2026

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