franzose/closure-table
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jiaxincui/closure-table | 0.86 | Closure table implementation for Laravel Eloquent models, adding fast hierarchical tree queries and operations—ancestors, descendants, siblings, moving nodes—without recursive queries. Simple trait integration with support for multiple trees. | 111 | 113 | 22 | 89 | 0 | 25.6 | 4.0 | MIT | 1 month ago | |
| aiman/nest-tool | 0.86 | 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 | |
| nicmart/tree | 0.86 | A flexible PHP tree data structure with a fluent builder API. Create nodes with any value, add or remove children, manage parents automatically, and build hierarchies easily for menus, categories, and nested data. | 574 | 586 | 61 | 912K | 5 | 27.8 | 52.4 | MIT | 1 month ago | |
| vusys/laravel-nestedset | 0.86 | 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 | |
| phl/laravel-sti | 0.86 | phl/laravel-sti brings Single Table Inheritance to Laravel Eloquent. Map multiple model subclasses to one database table using a type column, with automatic class resolution, scoped queries, and familiar Eloquent relationships and behavior for cleaner hierarchical models instead of separate tables. | 17 | 17 | 0 | 0 | 1 | 0.2 | — | MIT | 6 years ago | |
| korridor/laravel-has-many-merged | 0.85 | Adds a hasManyMerged relationship to Laravel Eloquent, letting you combine several hasMany relations across models into one query-backed collection with sorting, limits, and eager loading. Ideal for unified feeds, timelines, and activity lists. | 90 | 90 | 3 | 7K | 4 | 13.1 | 30.4 | MIT | 6 months ago | |
| bluem/tree | 0.85 | 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 | — | — | — |
|
| fico7489/laravel-eloquent-join | 0.85 | Laravel Eloquent Join adds SQL JOIN support to Eloquent models and relationships, letting you sort, filter, and query joined tables directly while keeping familiar query builder syntax. It simplifies complex relationship queries and helps avoid extra queries. | 338 | — | 87 | — | 11 | 7.6 | 4.1 | MIT | 1 year ago |
|
| baum/baum | 0.85 | 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 | — | |
| gazsp/baum | 0.85 | — | 130 | 133 | 38 | 2K | 19 | 7.8 | 22.5 | MIT | 6 years ago | |
| kalnoy/nestedset | 0.85 | 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. | 3,802 | 3,842 | 476 | 572K | 196 | 55.4 | 52.8 | — | 1 year ago | |
| trilote/baum | 0.85 | — | 0 | 0 | 0 | 2K | 0 | 0.0 | 44.7 | MIT | — | |
| lychee-org/nestedset | 0.85 | Lychee's Nested Set package brings the nested set model to Laravel's Eloquent, so you can store and query hierarchical data—trees, categories, menus—with fast ancestor and descendant lookups and an expressive API for creating, moving, and traversing nodes. | 1 | 1 | 2 | 10K | 0 | 18.2 | 59.1 | — | 1 month ago | |
| toponepercent/baum | 0.84 | Baum is a Nested Set implementation for the Laravel Eloquent ORM, making it easy to store, traverse and query hierarchical data such as categories, menus and trees with efficient single-query reads. Supports Laravel 5.8 through 13. | 32 | 33 | 8 | 4K | 0 | 16.8 | 32.2 | MIT | 4 months ago | |
| staudenmeir/laravel-merged-relations | 0.84 | Merge multiple Laravel Eloquent relations into a single relation that can be queried and eager loaded as one. Combine hasMany, belongsToMany, and morph relations into a unified result set, simplifying complex relationship handling in your models. | 185 | 186 | 12 | 53K | 1 | 9.6 | 36.2 | MIT | 7 months ago | |
| imanghafoori/eloquent-relativity | 0.84 | Laravel package that lets you declare Eloquent relationships without importing related model classes. Relativity infers the target model from the method name, so hasMany, hasOne, belongsTo and belongsToMany calls stay concise and your models keep fewer use statements. | 148 | 148 | 13 | 27 | 1 | 1.2 | 1.0 | MIT | 2 years ago | |
| pvsaintpe/ltree-bundle | 0.84 | pvsaintpe/ltree-bundle is a Symfony bundle for integrating PostgreSQL ltree with Doctrine, enabling hierarchical tree data storage, path-based queries, and practical tree management for PHP applications. | 10 | — | 6 | — | 2 | 0.9 | — | — | 5 years ago | |
| happenv-com/laravel-ltree | 0.84 | Laravel integration for PostgreSQL's ltree extension, making it easy to store and query hierarchical data such as categories, menus, and org trees. Supports path-based ancestor/descendant lookups, subtree moves, and Eloquent model traits for managing tree structures directly in your database. | 0 | — | 0 | — | 0 | 14.0 | — | MIT | 3 months ago | |
| baril/bonsai | 0.84 | Closure Table pattern implementation for Laravel Eloquent that lets you store and query tree-like structures in a relational database. Provides fast ancestor and descendant lookups across all supported DBMSs, migration artisan commands, and an alternative to nested sets. | 36 | 36 | 0 | 2K | 0 | 16.2 | 25.0 | — | 4 months ago | |
| umbrellio/laravel-ltree | 0.84 | 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 |
How can I help you explore Laravel packages today?