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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| creocoder/yii2-nested-sets | 0.83 | 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. | 444 | 449 | 124 | 52K | 35 | 16.9 | 40.1 | NOASSERTION | 11 years ago | |
| gzero/eloquent-tree | 0.82 | — | 131 | 134 | 21 | 571 | 2 | 3.2 | 10.0 | MIT | 7 years ago | |
| typicms/nestablecollection | 0.81 | — | 88 | 91 | 29 | 3K | 2 | 25.9 | 24.6 | MIT | 2 months ago | |
| nevadskiy/laravel-tree | 0.81 | — | 67 | 67 | 7 | 3K | 5 | 6.7 | 24.1 | MIT | 11 months ago | |
| novius/filament-relation-nested | 0.80 | Filament package to manage Eloquent relations backed by kalnoy/nestedset. Adds a TreeRelationManager for nested tree CRUD in your admin panel, with optional actions like FixTree to repair the nested set structure. Compatible with Laravel 11, Filament 5, PHP 8.2+. | 2 | 3 | 0 | 335 | 1 | 19.9 | 33.0 | — | 3 weeks ago | |
| baum/baum | 0.79 | 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,225 | 2,258 | 451 | 19K | 127 | 44.7 | 38.2 | MIT | — | |
| toponepercent/baum | 0.79 | — | 31 | 33 | 8 | 2K | 2 | 17.5 | 29.1 | MIT | 3 months ago | |
| wsmallnews/filament-nestedset | 0.79 | — | 19 | 19 | 5 | 1K | 1 | 25.0 | 29.6 | MIT | 3 weeks ago | |
| trilote/baum | 0.78 | — | 0 | 0 | 0 | 586 | 0 | 0.0 | 38.2 | MIT | — | |
| staudenmeir/laravel-adjacency-list | 0.77 | Laravel Eloquent extension for recursive tree and graph relationships using SQL common table expressions. Traverse ancestors, descendants, and paths in adjacency-list data across MySQL, Postgres, SQLite, SQL Server, and more; supports one-to-many trees and many-to-many graphs. | 1,563 | 1,563 | 114 | 210K | 5 | 39.5 | 35.1 | MIT | 1 month ago | |
| gazsp/baum | 0.77 | — | 129 | 132 | 38 | 2K | 17 | 7.2 | 23.6 | MIT | 6 years ago | |
| nicmart/tree | 0.74 | 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. | 0 | 589 | — | 593K | — | 20.2 | 46.0 | — | — |
How can I help you explore Laravel packages today?