PHPackages                             handysolver/yii2-sortable-list-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. handysolver/yii2-sortable-list-view-widget

ActiveYii2-extension

handysolver/yii2-sortable-list-view-widget
==========================================

Sortable modification of standard Yii2 ListView widget

2942PHP

Since Sep 5Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Sortable ListView Widget for Yii2
=================================

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

Sortable modification of standard Yii2 ListView widget.

Credits
-------

[](#credits)

This library has been picked up from [himiklab's gridview sortable](https://github.com/himiklab/yii2-sortable-grid-view-widget) and has been customised to work with ListView. Great work himiklab!

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

[](#installation)

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

- Either run

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

```

or add

```
"handysolver/yii2-sortable-list-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 handysolver\sortablelist\SortableListBehavior;

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

- Add action in the controller, for example:

```
use handysolver\sortablelist\SortableListAction;

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

Usage
-----

[](#usage)

- Use SortableListView as standard ListView with `sortableAction` option. You can also subscribe to the JS event 'sortableSuccess' generated widget after a successful sorting.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![handyrahul](https://avatars.githubusercontent.com/u/122795336?v=4)](https://github.com/handyrahul "handyrahul (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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