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

ActiveYii2-extension

naduvko/yii2-toggle-column
==========================

Provides a toggle data column and action

0.7.5(5y ago)08MITPHP

Since Oct 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/naduvko/yii2-toggle-column)[ Packagist](https://packagist.org/packages/naduvko/yii2-toggle-column)[ RSS](/packages/naduvko-yii2-toggle-column/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (11)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 naduvko/yii2-toggle-column "*"

```

or add

```
"naduvko/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 naduvko\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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~290 days

Recently: every ~406 days

Total

9

Last Release

1906d ago

### Community

Maintainers

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

---

Top Contributors

[![naduvko](https://avatars.githubusercontent.com/u/615788?v=4)](https://github.com/naduvko "naduvko (11 commits)")[![arisk](https://avatars.githubusercontent.com/u/1027859?v=4)](https://github.com/arisk "arisk (7 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/naduvko-yii2-toggle-column/health.svg)

```
[![Health](https://phpackages.com/badges/naduvko-yii2-toggle-column/health.svg)](https://phpackages.com/packages/naduvko-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)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k46](/packages/skeeks-cms)[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)[nick-denry/yii2-round-switch-column

Round switch ToggleColumn for Yii2 GridView

109.3k1](/packages/nick-denry-yii2-round-switch-column)

PHPackages © 2026

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