PHPackages                             beatep/yii2-sortable-widgets - 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. beatep/yii2-sortable-widgets

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

beatep/yii2-sortable-widgets
============================

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

v2.0.3(9y ago)11.9k↑75%1MITJavaScript

Since Oct 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/beatep/yii2-sortable-widgets)[ Packagist](https://packagist.org/packages/beatep/yii2-sortable-widgets)[ Docs](http://github.com/beatep/yii2-sortable-widgets)[ RSS](/packages/beatep-yii2-sortable-widgets/feed)WikiDiscussions master Synced 1mo ago

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

Yii2 Sortable widgets
=====================

[](#yii2-sortable-widgets)

Implementation Rubaxa/Sortable for Yii2 widgets. Position starts with 1.

Supported:

- GridView widget.

[![demo](https://camo.githubusercontent.com/32974438c1f9e42303245a2e565868806ed24b0d2560d6e13bf1f04d8c3a486a/68747470733a2f2f6873746f2e6f72672f66696c65732f3630652f6537612f6365642f36306565376163656437373934613633386430613633363530363233393761642e676966)](https://camo.githubusercontent.com/32974438c1f9e42303245a2e565868806ed24b0d2560d6e13bf1f04d8c3a486a/68747470733a2f2f6873746f2e6f72672f66696c65732f3630652f6537612f6365642f36306565376163656437373934613633386430613633363530363233393761642e676966)

Usage
-----

[](#usage)

Create a new migration, change a parent to the migration class from the extension and specify the table name property:

```
class m140811_131705_Models_order extends \beatep\sortable\migrations\Migration
{
    protected $tableName = 'models';
}
```

Add the sortable behavior to your model and specify the query property:

```
public function behaviors()
{
    return [
        'sortable' => [
            'class' => \beatep\sortable\behaviors\Sortable::className(),
            'query' => self::find(),
        ],
    ];
}
```

Add the sorting action to your controller and specify the query property:

```
public function actions()
{
    return [
        'sorting' => [
            'class' => \beatep\sortable\actions\Sorting::className(),
            'query' => \vendor\namespace\Model::find(),
        ],
    ];
}
```

Add the column to your grid view and specify the sorting url like here:

```
echo \yii\grid\GridView::widget([
    'dataProvider' => $model->search(),
    'rowOptions' => function ($model, $key, $index, $grid) {
        return ['data-sortable-id' => $model->id];
    },
    'columns' => [
        [
            'class' => \beatep\sortable\grid\Column::className(),
        ],
        'id',
        'title',
        'order',
    ],
    'options' => [
        'data' => [
            'sortable-widget' => 1,
            'sortable-url' => \yii\helpers\Url::toRoute(['sorting']),
        ]
    ],
]);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78.4% 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 ~122 days

Recently: every ~113 days

Total

6

Last Release

3625d ago

Major Versions

1.0.1 → v2.0.02015-08-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1794446?v=4)[Beate](/maintainers/beatep)[@beatep](https://github.com/beatep)

---

Top Contributors

[![chuprik](https://avatars.githubusercontent.com/u/802946?v=4)](https://github.com/chuprik "chuprik (29 commits)")[![beatep](https://avatars.githubusercontent.com/u/1794446?v=4)](https://github.com/beatep "beatep (6 commits)")[![sluchznak](https://avatars.githubusercontent.com/u/4091442?v=4)](https://github.com/sluchznak "sluchznak (2 commits)")

---

Tags

gridsortableyii2sortingjQueryUIgridviewdndrubaxa

### Embed Badge

![Health badge](/badges/beatep-yii2-sortable-widgets/health.svg)

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

###  Alternatives

[kotchuprik/yii2-sortable-widgets

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

61132.2k6](/packages/kotchuprik-yii2-sortable-widgets)[himiklab/yii2-sortable-grid-view-widget

Sortable modification of standard Yii2 GridView widget

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

Sortable Behavior for Yii2

15310.5k4](/packages/paulzi-yii2-sortable)[yiister/yii2-advanced-grid

Advanced GridView extension for Yii framework 2

4712.5k](/packages/yiister-yii2-advanced-grid)[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)
