kalnoy/nestedset
Laravel Eloquent implementation of the Nested Set model for storing hierarchical data. Manage trees with fast reads: add, move, delete nodes, retrieve ancestors/descendants, build menus, and handle multiple roots with scoped trees, all via familiar model methods.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| staudenmeir/laravel-adjacency-list | 0.80 | Eloquent extension that adds recursive relationships for trees (one parent) and graphs (many parents) using SQL common table expressions. Traverse ancestors/descendants and other hierarchies across MySQL, MariaDB, Postgres, SQLite, and SQL Server. | 1,551 | 1,545 | 113 | 181K | 7 | 42.2 | 36.3 | MIT | 1 month ago | |
| creocoder/yii2-nested-sets | 0.80 | Yii2 Nested Sets Behavior implementing the Modified Preorder Tree Traversal algorithm for hierarchical data. Adds ActiveRecord behavior and query helpers for inserting, moving, and deleting nodes, with optional multi-tree support via a tree attribute. | 445 | 450 | 124 | 45K | 35 | 36.9 | 48.6 | NOASSERTION | 11 years ago | |
| nicmart/tree | 0.75 | A lightweight, flexible tree data structure for PHP. Provides NodeInterface/Node implementations with parent/child management, leaf/child checks, and easy child add/remove/set operations. Includes fluent builder classes to assemble trees quickly. | 574 | 586 | 63 | 590K | 5 | 31.0 | 53.5 | MIT | 4 months ago | |
| baum/baum | 0.75 | Baum adds Nested Set trees to Laravel’s Eloquent ORM, enabling fast, non-recursive queries like fetching all descendants in one query. Ideal for ordered hierarchies such as menus, categories, and threaded posts, while handling complex inserts/moves/deletes automatically. | 2,228 | 2,262 | 452 | 10K | 127 | 44.7 | 35.5 | MIT | — |
How can I help you explore Laravel packages today?