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

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

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

Sortable modification of standard Yii2 GridView widget

1.0.11(8y ago)0205MITPHP

Since Jan 27Pushed 8y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (7)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 "himiklab/yii2-sortable-grid-view-widget" "*"

```

or add

```
"himiklab/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 himiklab\sortablegrid\SortableGridBehavior;

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

- Add action in the controller, for example:

```
use himiklab\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.

Scopes
------

[](#scopes)

Sometimes a table contains sort orders for multiple scopes. For example, a list of filters linked to a specific category. The scopeAttribute can be used to segment the sequence list. New items automatically get the next sort order in the segment.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~196 days

Total

6

Last Release

3079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bd5e54825232017fc755a35f689ff7f170670d0e51d6c30ff87fdd6eb64b432?d=identicon)[twixoff](/maintainers/twixoff)

---

Top Contributors

[![himiklab](https://avatars.githubusercontent.com/u/6266409?v=4)](https://github.com/himiklab "himiklab (26 commits)")[![twixofff](https://avatars.githubusercontent.com/u/197226287?v=4)](https://github.com/twixofff "twixofff (21 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/twixoff-yii2-sortable-grid-view-widget/health.svg)

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

###  Alternatives

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

Sortable modification of standard Yii2 GridView widget

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

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

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

Sortable GridView for Yii2

29189.3k](/packages/richardfan1126-yii2-sortable-gridview)[mickgeek/yii2-actionbar

A control bar with bulk actions for the GridView widget.

3444.5k](/packages/mickgeek-yii2-actionbar)[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)
