staudenmeir/laravel-adjacency-list
Laravel Eloquent extension that adds recursive relationships for tree and graph structures using common table expressions (CTEs). Traverse categories, page hierarchies, nested comments, and more across MySQL, PostgreSQL, SQLite, SQL Server, and MariaDB.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| aiman/nest-tool | 0.89 | A Laravel package for working with nested set hierarchical data, offering helpers to create, move, and query tree nodes so you can manage categories, menus, and other parent-child structures with efficient ancestor and descendant lookups. | 2 | 2 | 6 | 4K | 0 | 0.3 | 42.8 | — | 6 years ago | |
| vusys/laravel-nestedset | 0.89 | A modern Laravel nested-set implementation for hierarchical Eloquent data, featuring strict types, PHPStan level 9, atomic CASE-WHEN mutations, multi-tree scoping, and soft deletes. Supports PHP 8.3 and Laravel 11, 12, or 13. | 0 | 0 | 0 | 135 | 0 | 22.8 | 33.0 | MIT | 3 months ago | |
| nevadskiy/laravel-tree | 0.88 | — | 70 | 70 | 7 | 22K | 5 | 6.3 | 36.1 | MIT | 1 year ago | |
| franzose/closure-table | 0.88 | Closure table implementation for Laravel that turns flat tables into efficient hierarchical trees. Query ancestors and descendants in one call, move nodes without rebuilding the tree, and keep parent-child relationships fast, simple, and scalable. | 462 | 466 | 107 | 44K | 14 | 15.5 | 36.3 | MIT | 9 months ago | |
| staudenmeir/eloquent-eager-limit-x-laravel-adjacency-list | 0.88 | Compatibility package combining staudenmeir/laravel-adjacency-list with eloquent-eager-limit, letting Laravel apps cap eager-loaded relations on recursive adjacency list queries. Adds the missing trait support so hierarchical models can limit eager loads per parent without N+1 queries. | 14 | 14 | 1 | 381 | 0 | 0.4 | 20.0 | MIT | 3 years ago | |
| umbrellio/laravel-ltree | 0.87 | Laravel integration for PostgreSQL ltree that brings hierarchical tree data to Eloquent models. Provides migrations, path helpers, and query scopes for ancestors, descendants, and subtree traversal, making tree-structured data easy to store and search. | 35 | 35 | 13 | 1K | 1 | 1.3 | 23.3 | MIT | 1 year ago | |
| bluem/tree | 0.87 | bluem/tree is a PHP library for building and manipulating hierarchical tree structures from flat, parent-child data. It offers node traversal, filtering, and rendering helpers, making it useful for categories, menus, and other nested data in Laravel or plain PHP projects. | 237 | — | 46 | — | 1 | 2.8 | — | — | — |
|
| typicms/nestablecollection | 0.87 | — | 88 | 91 | 28 | 5K | 2 | 17.6 | 25.6 | MIT | 7 months ago | |
| aimeos/laravel-nestedset | 0.87 | Laravel nested set package for storing and querying hierarchical data as trees. Adds tree support to Eloquent models with fast ancestor, descendant, sibling, and depth queries via left/right indexes, plus simple APIs for moving nodes and rebuilding trees. | 39 | — | 1 | — | 0 | 0.2 | — | — | — |
|
| baum/baum | 0.87 | 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,217 | 2,252 | 445 | 31K | 129 | 44.4 | 40.6 | MIT | — | |
| znck/belongs-to-through | 0.87 | — | 1,269 | 605 | 97 | 637 | 0 | 24.6 | 2.6 | MIT | 8 months ago | |
| tadcka/tree | 0.87 | tadcka/tree is a PHP package for managing hierarchical tree structures, with support for defining nodes, parent-child relationships, traversal, and nested data organization. It helps integrate reusable tree logic into Laravel or plain PHP applications. | 0 | 0 | 1 | 1 | 0 | 0.0 | 4.2 | MIT | 9 years ago | |
| staudenmeir/eloquent-param-limit-fix-x-laravel-adjacency-list | 0.87 | Bridge package that lets staudenmeir/laravel-adjacency-list work with the eloquent-param-limit-fix, avoiding database parameter limits when recursive adjacency list queries generate large numbers of bindings. | 11 | 11 | 0 | 45 | 0 | 6.7 | 10.3 | MIT | 8 months ago | |
| gazsp/baum | 0.87 | — | 130 | 133 | 38 | 2K | 19 | 7.8 | 22.5 | MIT | 6 years ago | |
| staudenmeir/laravel-cte | 0.87 | Adds common table expression (CTE) support to Laravel's query builder and Eloquent. Use withExpression and withRecursiveExpression for SELECT, INSERT, UPDATE, and DELETE queries, including recursive and materialized expressions. Works with Laravel 5.5+ and major databases. | 669 | 669 | 51 | 815K | 0 | 20.5 | 45.0 | MIT | 8 months ago | |
| paxha/laravel-recursive-relationships | 0.87 | Laravel package for defining and working with recursive relationships in Eloquent models—query parent-child hierarchies, trees, and nested structures with ease. (Approx 160 chars - need closer to 300) Let me expand to ~300 chars: Laravel package for defining and querying recursive relationships in E... | 27 | 27 | 5 | 898 | 1 | 0.4 | 21.0 | MIT | 5 years ago | |
| gzero/eloquent-tree | 0.87 | — | 131 | 134 | 21 | 299 | 2 | 3.2 | 7.1 | MIT | 8 years ago | |
| arcanedev/laravel-nestedset | 0.87 | Laravel Nested Set offers an efficient way to store and query hierarchical data using the nested set model, with a fluent API for creating, moving, and traversing trees and fast ancestor/descendant lookups without recursive queries. | 5 | 6 | 1 | 21 | 0 | 0.1 | 9.0 | MIT | 9 years ago | |
| staudenmeir/eloquent-has-many-deep | 0.86 | Extended HasManyThrough for Laravel 5.5+ lets you define relationships with unlimited intermediate models, supporting many-to-many, polymorphic, and combined relationship types. Define deep relationships by concatenating existing ones or specifying keys manually; includes third-party package support... | 2,872 | 2,876 | 157 | 943K | 2 | 36.4 | 36.8 | MIT | 7 months ago | |
| quentingab/wodel | 0.86 | quentingab/wodel is a Composer-installable Laravel/PHP package from quentingab. It is an early-stage project with limited adoption; consult the repository README for installation, configuration, and usage details before adding it to production. Best suited for evaluation and experimentation. | 0 | 0 | 0 | 1 | 0 | 0.2 | 2.9 | MIT | 5 years ago |
How can I help you explore Laravel packages today?