awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
lazychaser avatar

lazychaser/laravel-nestedset

0
View on GitHub↗
3,801 stars·482 forks·PHP·16 views

Laravel Nestedset

This library provides a framework for managing hierarchical data structures within relational databases using the nested set model. It integrates directly with the Laravel Eloquent object-relational mapping layer, allowing developers to store, query, and manipulate complex parent-child relationships within standard database tables.

The package distinguishes itself by implementing boundary-based indexing to represent tree depth and node containment. This approach enables the retrieval of entire branches or specific ancestors, descendants, and siblings through optimized database queries rather than recursive calls. It also includes automated rebalancing mechanisms that update boundary values whenever records are inserted, moved, or deleted, ensuring the structural integrity of the tree is maintained throughout its lifecycle.

Beyond basic storage, the library offers tools for transforming flat database collections into nested arrays or ordered lists, which simplifies the rendering of hierarchical information. It supports logical scoping to isolate operations to specific sub-trees and provides validation and repair utilities to detect and fix inconsistencies within the data structure.

Features

  • Nested Set Modeling - Implements the nested set model for managing hierarchical data structures within Laravel Eloquent models.
  • Eloquent Query Wrappers - Integrates tree-based data relationships directly into the Eloquent ORM query builder.
  • Nested Set Query Interfaces - Retrieves specific ancestors, descendants, or siblings using optimized database queries.
  • Nested Set Rebalancers - Maintains structural integrity by automatically updating boundary values whenever records are inserted, moved, or deleted.
  • Boundary-Based Traversers - Retrieves entire branches using optimized database queries instead of recursive calls.
  • Tree-Based Relationship Mappers - Implements advanced tree-based relationships within Laravel applications using Eloquent ORM.
  • Active Record Entities - Provides specialized methods for managing parent-child relationships directly within Eloquent models.
  • Hierarchical Data Modeling - Organizes relational records into parent-child structures to simplify complex data retrieval.
  • Tree - Enables defining parent-child and descendant relationships to support efficient navigation.
  • Recursive Relationship Querying - Supports retrieving specific ancestors, descendants, or siblings using targeted search constraints.
  • Sub-Tree Scopers - Isolates operations to specific sub-trees or branches using conditional database filters.
  • Flat-to-Hierarchical Converters - Converts flat database collections into nested arrays or ordered lists for rendering.
  • Database Tree Scopers - Isolates operations to specific sub-trees or logical groups within a table.
  • Tree Structure Repairers - Provides validation and repair tools to ensure structural consistency in nested database sets.
  • Relational Hydrators - Transforms flat database collections into nested object structures during hydration.
  • Database Tree Manipulators - Allows inserting, moving, and reordering nodes relative to existing parents or siblings.
  • Data Structures - Implementation of tree data structures in relational databases.
  • Databases and ORMs - Implements the nested set pattern.

Star history

Star history chart for lazychaser/laravel-nestedsetStar history chart for lazychaser/laravel-nestedset

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Laravel Nestedset

These projects share indexed features with Laravel Nestedset. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • spatie/laravel-query-builderspatie avatar

    spatie/laravel-query-builder

    4,453View on GitHub↗

    This project is an Eloquent query builder wrapper and REST API query parser for Laravel applications. It translates HTTP request parameters into database queries to provide dynamic filtering, sorting, and relationship loading for API endpoints. The system decouples the external API interface from the storage layer through alias-based schema abstraction, allowing public field names to map to private database columns. It supports the dynamic inclusion of nested relationships and aggregate counts, as well as the execution of custom programmatic logic for filters and sorting via invokable classes

    PHPapihacktoberfestlaravel
    View on GitHub↗4,453
  • doctrine-extensions/doctrineextensionsdoctrine-extensions avatar

    doctrine-extensions/DoctrineExtensions

    4,143View on GitHub↗

    DoctrineExtensions is a collection of reusable behavioral extensions for Doctrine ORM designed to automate common entity tasks. It provides a system for tracking historical changes to database entities, implementing soft deletion workflows, managing nested set tree structures for hierarchical data, and storing translated field values based on language locales. The project distinguishes itself by providing specialized tools for entity auditing, which logs modified values and timestamps, and a translation framework for multilingual content management. It also includes a tree manager to organize

    PHP
    View on GitHub↗4,143
  • expensify/appExpensify avatar

    Expensify/App

    4,725View on GitHub↗

    Expensify App is a cross-platform collaborative expense management platform that combines receipt capture, expense tracking, and shared bill splitting for groups and teams. Designed as an offline-first application, it applies user actions optimistically to local state and queues them for server synchronization, with automatic rollback if the server rejects an operation. The application is built on a reactive client-side key-value store called Onyx that broadcasts changes to subscribed components and persists data to disk for offline access. Its cross-platform TypeScript and React codebase com

    TypeScript
    View on GitHub↗4,725
  • prettus/l5-repositoryprettus avatar

    prettus/l5-repository

    4,205View on GitHub↗

    This project is a repository pattern library for Laravel applications designed to decouple business logic from database queries and storage implementation. It provides a standardized data access layer to isolate application logic from the underlying storage layer. The library includes a query filter system that translates HTTP request parameters into dynamic database filters, search criteria, and sorting logic. It features an API presenter layer to separate internal data structures from client responses and a cache manager that automatically refreshes stored database results when records are

    PHP
    View on GitHub↗4,205
Compare all 30 related projects→

Frequently asked questions

What does lazychaser/laravel-nestedset do?

This library provides a framework for managing hierarchical data structures within relational databases using the nested set model. It integrates directly with the Laravel Eloquent object-relational mapping layer, allowing developers to store, query, and manipulate complex parent-child relationships within standard database tables.

What are the main features of lazychaser/laravel-nestedset?

The main features of lazychaser/laravel-nestedset are: Nested Set Modeling, Eloquent Query Wrappers, Nested Set Query Interfaces, Nested Set Rebalancers, Boundary-Based Traversers, Tree-Based Relationship Mappers, Active Record Entities, Hierarchical Data Modeling.

Which projects share features with lazychaser/laravel-nestedset?

Projects with overlapping indexed features include: expensify/app — Expensify App is a cross-platform collaborative expense management platform that combines receipt capture, expense… spatie/laravel-query-builder — This project is an Eloquent query builder wrapper and REST API query parser for Laravel applications. It translates… doctrine-extensions/doctrineextensions — DoctrineExtensions is a collection of reusable behavioral extensions for Doctrine ORM designed to automate common… prettus/l5-repository — This project is a repository pattern library for Laravel applications designed to decouple business logic from… dpapathanasiou/simple-graph — Simple Graph is a lightweight graph database engine that utilizes SQLite to persist nodes and edges. It functions as a… kakuilan/china_area_mysql — This project is a MySQL administrative division database providing structured mappings of Chinese administrative…