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

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

ivankff/yii2-sortable
=====================

yii2 tools for position column

0.2.1(4y ago)074BSD-3-ClausePHP

Since Jan 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ivankff/yii2-sortable)[ Packagist](https://packagist.org/packages/ivankff/yii2-sortable)[ RSS](/packages/ivankff-yii2-sortable/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

yii2-sortable
=============

[](#yii2-sortable)

SortableBehavior
----------------

[](#sortablebehavior)

```
public function behaviors()
{
	return [
		...
		'sort' => [
			'class' => 'ivankff\yii2Sortable\SortableBehavior',
			'groupAttributes' => ['parent_id'],
		],
		...
	];
}
```

Controller
----------

[](#controller)

```
public function actions()
{
	return [
		...
		'position' => [
			'class' => 'ivankff\yii2Sortable\BulkPositionAction',
			'model' => [$this, 'findModel'],
		],
		...
	];
}
```

Grid view
---------

[](#grid-view)

```
GridView::widget([
	'columns' => [
		...
		[
			'class' => 'ivankff\yii2Sortable\PositionColumn',
			'attribute'=>'position',
		],
		...
	],
	'panel' => [
		...
		'after' => '' . Html::a(' Пересортировать', \yii\helpers\Url::to(['position']), ['data-pjax' => '1', 'data-pjax-container' => 'crud-datatable-pjax', 'class' => 'btn btn-primary float-right kv-position-set']) . '',
		...
	],
]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

3

Last Release

1628d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e6319552cac655ad77ba2346e9fce4196a5a5b25725dd31d43420e24320b5d?d=identicon)[ivankff](/maintainers/ivankff)

---

Tags

sortablebehaviorsyii2yii 2position

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kotchuprik/yii2-sortable-widgets

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

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

Sortable Behavior for Yii2

15310.5k4](/packages/paulzi-yii2-sortable)[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20144.4k11](/packages/softark-yii2-dual-listbox)

PHPackages © 2026

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