PHPackages                             simialbi/yii2-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. [Framework](/categories/framework)
4. /
5. simialbi/yii2-nestable

ActiveYii2-extension[Framework](/categories/framework)

simialbi/yii2-nestable
======================

Yii 2.0 implementation of nested set behavior.

3.1.1(1y ago)1408MITJavaScriptPHP &gt;=7.3

Since Nov 9Pushed 1y ago2 watchersCompare

[ Source](https://github.com/simialbi/yii2-nestable)[ Packagist](https://packagist.org/packages/simialbi/yii2-nestable)[ Docs](https://github.com/simialbi/yii2-nestable)[ RSS](/packages/simialbi-yii2-nestable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (0)

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

[](#yii2-nestable)

Yii 2.0 implementation of nested set behavior using jquery.nestable plugin based on nestedSortable jQuery plugin implementation.

- [nestedSortable jQuery plugin](https://github.com/ilikenwf/nestedSortable)
- [Nested Sets Behavior](https://github.com/creocoder/yii2-nested-sets) for Yii 2

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

[](#installation)

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

Either run

```
$ php composer.phar require simialbi/yii2-nestable "~3.0"

```

or add

```
"simialbi/yii2-nestable": "~3.0"

```

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

Usage
-----

[](#usage)

Make sure you've attached the NestedSetsBehavior (creocoder/yii2-nested-sets) correctly to your model.

And then render the widget in your view. An advanced example could look like this:

```
