PHPackages                             rezident/yii2-sortable-grid-view-widget - 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. rezident/yii2-sortable-grid-view-widget

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

rezident/yii2-sortable-grid-view-widget
=======================================

Sortable modification of standard Yii2 GridView widget

1.0.9(10y ago)019MITPHP

Since Jan 27Pushed 10y agoCompare

[ Source](https://github.com/rezident/yii2-sortable-grid-view-widget)[ Packagist](https://packagist.org/packages/rezident/yii2-sortable-grid-view-widget)[ RSS](/packages/rezident-yii2-sortable-grid-view-widget/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Sortable GridView Widget for Yii2
=================================

[](#sortable-gridview-widget-for-yii2)

Sortable modification of standard Yii2 GridView widget.

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

[](#installation)

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

- Either run

```
php composer.phar require --prefer-dist "rezident/yii2-sortable-grid-view-widget" "*"

```

or add

```
"rezident/yii2-sortable-grid-view-widget" : "*"
```

to the `require` section of your application's `composer.json` file.

- Add to your database new `unsigned int` attribute, such `sortOrder`.
- Add new behavior in the AR model, for example:

```
use rezident\sortablegrid\SortableGridBehavior;

public function behaviors()
{
    return [
        'sort' => [
            'class' => SortableGridBehavior::className(),
            'sortableAttribute' => 'sortOrder'
        ],
    ];
}
```

- Add action in the controller, for example:

```
use rezident\sortablegrid\SortableGridAction;

public function actions()
{
    return [
        'sort' => [
            'class' => SortableGridAction::className(),
            'modelName' => Model::className(),
        ],
    ];
}
```

Usage
-----

[](#usage)

- Use SortableGridView as standard GridView with `sortableAction` option. You can also subscribe to the JS event 'sortableSuccess' generated widget after a successful sorting.
- Use `not-sortable` class for row to disable sorting for this row

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 77.1% 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 ~137 days

Total

4

Last Release

3762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35a3eb31f74a417ee93f44961f6e1c43b95821ddb977d6310f289f2da14724f8?d=identicon)[rezident](/maintainers/rezident)

---

Top Contributors

[![himiklab](https://avatars.githubusercontent.com/u/6266409?v=4)](https://github.com/himiklab "himiklab (27 commits)")[![arstar](https://avatars.githubusercontent.com/u/2492098?v=4)](https://github.com/arstar "arstar (4 commits)")[![lav45](https://avatars.githubusercontent.com/u/675367?v=4)](https://github.com/lav45 "lav45 (2 commits)")[![Evgen1986](https://avatars.githubusercontent.com/u/10276586?v=4)](https://github.com/Evgen1986 "Evgen1986 (1 commits)")[![randycoder](https://avatars.githubusercontent.com/u/7973684?v=4)](https://github.com/randycoder "randycoder (1 commits)")

---

Tags

gridsortableyii2widgetgridview

### Embed Badge

![Health badge](/badges/rezident-yii2-sortable-grid-view-widget/health.svg)

```
[![Health](https://phpackages.com/badges/rezident-yii2-sortable-grid-view-widget/health.svg)](https://phpackages.com/packages/rezident-yii2-sortable-grid-view-widget)
```

###  Alternatives

[himiklab/yii2-sortable-grid-view-widget

Sortable modification of standard Yii2 GridView widget

79358.0k7](/packages/himiklab-yii2-sortable-grid-view-widget)[kotchuprik/yii2-sortable-widgets

Implementation Rubaxa/Sortable for Yii2. Sortable grid view inside.

61137.0k6](/packages/kotchuprik-yii2-sortable-widgets)[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29197.0k](/packages/richardfan1126-yii2-sortable-gridview)[himiklab/yii2-jqgrid-widget

A powerful ajax-enabled grid widget for Yii2

214.1k](/packages/himiklab-yii2-jqgrid-widget)[sjaakp/yii2-alphapager

Page data on initial character in Yii2.

184.4k](/packages/sjaakp-yii2-alphapager)

PHPackages © 2026

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