PHPackages                             wonail/yii2-widget-nestable - 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. wonail/yii2-widget-nestable

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

wonail/yii2-widget-nestable
===========================

v1.2(8y ago)1166BSD-3-ClauseJavaScript

Since Jul 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Wonail/yii2-widget-nestable)[ Packagist](https://packagist.org/packages/wonail/yii2-widget-nestable)[ RSS](/packages/wonail-yii2-widget-nestable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (4)Used By (0)

yii2-widget-nestable
====================

[](#yii2-widget-nestable)

Nestable 小部件

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist wonail/yii2-widget-nestable "*"

```

or add

```
"wonail/yii2-widget-nestable": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
// 数据库里保存的数据，这里用json格式保存，部件读取时，直接decode解码即可
$value = '[{"group":"disable","title":"禁用","items":[]},{"group":"enable","title":"启用","items":[{"title":"修改头像","name":"change_avatar","id":1},{"title":"选择个人标签","name":"set_tag","id":3},{"title":"填写扩展资料","name":"expand_info","id":2}]}]';
echo $form->field($model, 'name')->widget(\wonail\nestable\Nestable::className(), [
    'items' => \yii\helpers\Json::decode($value),
    'pluginOptions' => [
        'group' => 1,
        'maxDepth' => 1
    ]
]);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Every ~7 days

Total

3

Last Release

3252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef0fd33526ea9ecb0881af0f45e9f93a9bf01e23f590438a446fc9b055cf2c4b?d=identicon)[e-kevin](/maintainers/e-kevin)

---

Top Contributors

[![e-kevin](https://avatars.githubusercontent.com/u/3927528?v=4)](https://github.com/e-kevin "e-kevin (4 commits)")

---

Tags

yii2-widgetyii2extensionnestablewonail

### Embed Badge

![Health badge](/badges/wonail-yii2-widget-nestable/health.svg)

```
[![Health](https://phpackages.com/badges/wonail-yii2-widget-nestable/health.svg)](https://phpackages.com/packages/wonail-yii2-widget-nestable)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[slatiusa/yii2-nestable

Yii 2.0 implementation of nested set behavior using jquery.nestable plugin.

1718.5k2](/packages/slatiusa-yii2-nestable)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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