PHPackages                             kesha-dev/sortable - 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. kesha-dev/sortable

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

kesha-dev/sortable
==================

Yii2 GridView widget base on jQuery UI sortable widget

1.0.2(10mo ago)06MITPHP

Since Jul 15Pushed 10mo agoCompare

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

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

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

27

—

LowBetter than 49% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Every ~0 days

Total

3

Last Release

307d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

sortableyii2extensionwidgetgridview

### Embed Badge

![Health badge](/badges/kesha-dev-sortable/health.svg)

```
[![Health](https://phpackages.com/badges/kesha-dev-sortable/health.svg)](https://phpackages.com/packages/kesha-dev-sortable)
```

###  Alternatives

[kartik-v/yii2-sortable

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

433.8M13](/packages/kartik-v-yii2-sortable)[himiklab/yii2-sortable-grid-view-widget

Sortable modification of standard Yii2 GridView widget

80351.1k7](/packages/himiklab-yii2-sortable-grid-view-widget)[kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

24660.4k2](/packages/kartik-v-yii2-sortable-input)[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29189.3k](/packages/richardfan1126-yii2-sortable-gridview)[sjaakp/yii2-alphapager

Page data on initial character in Yii2.

184.4k](/packages/sjaakp-yii2-alphapager)[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)
