Download the PHP package rezident/yii2-nested-set-plus without Composer

On this page you can find all versions of the php package rezident/yii2-nested-set-plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-nested-set-plus

Nested Set behavior and Nested Draggable List widget for Yii 2

This extension is a fork of wbraganca/yii2-nested-set-behavior.

It is developed for use in our internal project, but you can use and/or modify it on your own.

Just like Nested Set behavior by wbraganca, this extension allows you to get functional for nested set trees and also includes a widget for show Drag & drop hierarchical list with mouse and touch compatibility based on dbushell/Nestable jQuery plugin.

Installation

The preferred way to install this extension is through composer.

Either run

or add

to the require section of your composer.json file.

Configuring

First you need to configure model as follows:

There is no need to validate fields specified in leftAttribute, rightAttribute, rootAttribute and levelAttribute options. Moreover, there could be problems if there are validation rules for these. Please check if there are no rules for fields mentioned in model's rules() method.

In case of storing a single tree per database, DB structure can be built with schema/schema.sql. If you're going to store multiple trees you'll need schema/schema-many-roots.sql.

By default leftAttribute, rightAttribute and levelAttribute values are matching field names in default DB schemas so you can skip configuring these.

There are two ways this behavior can work: one tree per table and multiple trees per table. The mode is selected based on the value of hasManyRoots option that is false by default meaning single tree mode. In multiple trees mode you can set rootAttribute option to match existing field in the table storing the tree.

Work with Nested Set behavior

Please read the original plugin documentation for get an information about work with the nested data.

Note that method for fetch and prepare data for use with Fancytree was removed from NestedSetQueryBehavior class.

Instead of was added method NestedSetQueryBehavior::tree() that returns tree data for Nested Draggable List widget.

Using Nested Draggable List widget


All versions of yii2-nested-set-plus with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rezident/yii2-nested-set-plus contains the following files

Loading the files please wait ....