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

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

oonne/yii2-sortable-grid-view
=============================

Yii2 GridView widget base on jQuery UI sortable widget

1.0.0(8y ago)33.0k11MITPHP

Since Jul 19Pushed 7y agoCompare

[ Source](https://github.com/oonne/yii2-sortable-grid-view)[ Packagist](https://packagist.org/packages/oonne/yii2-sortable-grid-view)[ RSS](/packages/oonne-yii2-sortable-grid-view/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

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

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

Yii2 GridView widget base on jQuery UI sortable 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 "oonne/yii2-sortable-grid-view" "*"

```

or add

```
"oonne/yii2-sortable-grid-view" : "*"

```

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

Usage
-----

[](#usage)

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

```
use oonne\sortablegrid\SortableGridBehavior;

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

- Add action in the controller, for example:

```
use oonne\sortablegrid\SortableGridAction;

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

- Add SortableGridView in the view, for example:

```
use oonne\sortablegrid\SortableGridView;

SortableGridView::widget([
    'dataProvider' => $dataProvider,
    'sortableAction' => ['/bannersuper/sort'],
    'columns' => [
        [
            'class' => 'yii\grid\SerialColumn',
            'contentOptions' => ['class' => 'sortable-handle'],
        ],
        [
            'attribute' => 'sName',
        ],
    ]
])
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3272d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18a9b29fff16cc3a878ff62723f40728ac12540c6693912f616d1635b4cddf4e?d=identicon)[onehejay](/maintainers/onehejay)

---

Top Contributors

[![oonne](https://avatars.githubusercontent.com/u/17686801?v=4)](https://github.com/oonne "oonne (5 commits)")

---

Tags

sortableyii2widgetgridview

### Embed Badge

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

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

###  Alternatives

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

Sortable modification of standard Yii2 GridView widget

79361.2k7](/packages/himiklab-yii2-sortable-grid-view-widget)[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29202.0k](/packages/richardfan1126-yii2-sortable-gridview)[kartik-v/yii2-sortable

Create sortable lists and grids using HTML5 drag and drop API for Yii 2.0.

464.0M13](/packages/kartik-v-yii2-sortable)[kotchuprik/yii2-sortable-widgets

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

64139.4k6](/packages/kotchuprik-yii2-sortable-widgets)[skeeks/cms

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

13825.8k59](/packages/skeeks-cms)[kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

24694.6k2](/packages/kartik-v-yii2-sortable-input)

PHPackages © 2026

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