Download the PHP package tobento/service-treeable without Composer
On this page you can find all versions of the php package tobento/service-treeable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tobento/service-treeable
More information about tobento/service-treeable
Files in tobento/service-treeable
Package service-treeable
Short Description Building trees easily.
License MIT
Homepage https://www.tobento.ch
Informations about the package service-treeable
Treeable Service
With the Treeable Service you can create and manipulating trees easily.
Table of Contents
- Getting started
- Requirements
- Highlights
- Documentation
- Array Tree
- Tree
- Traverser
- Credits
Getting started
Add the latest version of the Treeable service project running this command.
Requirements
- PHP 8.0 or greater
Highlights
- Framework-agnostic, will work with any project
- Decoupled design
Documentation
Array Tree
Array tree creates the following data structure:
Change the item keys for your array needs.
Sorting the array items.
Filter the array items.
Iterating over the array items.
On the each() method, the tree data structure has already been build, so you may use this information.
Iterating over the parent array items from a specific tree item.
Tree
Using the Tree class, items must implement the Treeable interface.
Sorting items
Filtering items
Iterating over each item
On the each() method, the tree data structure has already been build, so you may use this information.
Iterating over the parent items from a specific tree item.
Traverser
Traverse over array tree items.
Traverse over treeable items.
Credits
- Tobias Strub
- All Contributors