PHPackages                             shirase55/yii2-toggle-column - 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. shirase55/yii2-toggle-column

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

shirase55/yii2-toggle-column
============================

Provides a toggle data column and action

0.7.1(6y ago)02MITPHP

Since Oct 12Pushed 6y agoCompare

[ Source](https://github.com/shirase/yii2-toggle-column)[ Packagist](https://packagist.org/packages/shirase55/yii2-toggle-column)[ RSS](/packages/shirase55-yii2-toggle-column/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (9)Used By (0)

Toggle data column for Yii2
===========================

[](#toggle-data-column-for-yii2)

Provides a toggle data column and action

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist pheme/yii2-toggle-column "*"

```

or add

```
"pheme/yii2-toggle-column": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
// In your Controller
use pheme\grid\actions\ToggleAction;

public function actions()
{
	return [
		'toggle' => [
			'class' => ToggleAction::className(),
			'modelClass' => 'path\to\your\Model',
			// Uncomment to enable flash messages
			//'setFlash' => true,
		]
	];
}

// In your view
use yii\grid\GridView;
use yii\widgets\Pjax;

Pjax::begin();

GridView::widget(
	[
		'dataProvider' => $dataProvider,
		'filterModel' => $searchModel,
		'columns' => [
			'id',
			[
				'class' => '\pheme\grid\ToggleColumn',
				'attribute' => 'active',
				// Uncomment if  you don't want AJAX
				// 'enableAjax' => false,
			],
			['class' => 'yii\grid\ActionColumn'],
		],
	]
);

Pjax::end();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~247 days

Recently: every ~286 days

Total

8

Last Release

2499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e8ae42b1f8781beb3a02bf6f196ed4773ddddd69a6607c51ed32f053baaf14?d=identicon)[shirase](/maintainers/shirase)

---

Top Contributors

[![arisk](https://avatars.githubusercontent.com/u/1027859?v=4)](https://github.com/arisk "arisk (7 commits)")[![shirase](https://avatars.githubusercontent.com/u/4026991?v=4)](https://github.com/shirase "shirase (2 commits)")[![ZAYEC77](https://avatars.githubusercontent.com/u/4509483?v=4)](https://github.com/ZAYEC77 "ZAYEC77 (2 commits)")[![acorncom](https://avatars.githubusercontent.com/u/802505?v=4)](https://github.com/acorncom "acorncom (1 commits)")[![brogine](https://avatars.githubusercontent.com/u/4042589?v=4)](https://github.com/brogine "brogine (1 commits)")[![fabianacero](https://avatars.githubusercontent.com/u/8305366?v=4)](https://github.com/fabianacero "fabianacero (1 commits)")

---

Tags

yii2extensiontogglecolumn

### Embed Badge

![Health badge](/badges/shirase55-yii2-toggle-column/health.svg)

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

###  Alternatives

[pheme/yii2-toggle-column

Provides a toggle data column and action

27776.6k10](/packages/pheme-yii2-toggle-column)[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)[yiister/yii2-advanced-grid

Advanced GridView extension for Yii framework 2

4712.5k](/packages/yiister-yii2-advanced-grid)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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