Download the PHP package danielcosta/tree without Composer
On this page you can find all versions of the php package danielcosta/tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download danielcosta/tree
More information about danielcosta/tree
Files in danielcosta/tree
Download danielcosta/tree
More information about danielcosta/tree
Files in danielcosta/tree
Vendor danielcosta
Package tree
Short Description A simple helper package to allow using Trees on PHP
License MIT
Package tree
Short Description A simple helper package to allow using Trees on PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package tree
PHP Helper - Tree
Quick Installation
Usage
To use, just get an array like bellow
And pass it to the helper Tree
, using Tree::makeFromFlatArray($flatArray);
. The result will be exactly this:
Optional parameters to this method are:
- $parentId = 0 - when you want to set the first level of the return
- string $key = 'id' - the primary key on your flat array
- string $parentKey = 'parentId' - the parent key on your flat array
- string $childKey = 'nodes' - where to put the child nodes
Buy me a coffee
All versions of tree with dependencies
PHP Build Version
Package Version
No informations.
The package danielcosta/tree contains the following files
Loading the files please wait ....