PHPackages                             lianhechx/laravel-nestedset - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. lianhechx/laravel-nestedset

ActiveLibrary[Database &amp; ORM](/categories/database)

lianhechx/laravel-nestedset
===========================

Nested Set Model for Laravel

0.1.0(9y ago)034MITPHPPHP &gt;=5.5.9

Since Jan 24Pushed 9y agoCompare

[ Source](https://github.com/lianhechx/laravel-nestedset)[ Packagist](https://packagist.org/packages/lianhechx/laravel-nestedset)[ RSS](/packages/lianhechx-laravel-nestedset/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

This is a Laravel package for working with trees in relational databases.

- [Theory](#what-are-nested-sets)

What are nested sets?
---------------------

[](#what-are-nested-sets)

Nested sets or [Nested Set Model](http://en.wikipedia.org/wiki/Nested_set_model) is a way to effectively store hierarchical data in a relational table. From wikipedia:

> The nested set model is to number the nodes according to a tree traversal, which visits each node twice, assigning numbers in the order of visiting, and at both visits. This leaves two numbers for each node, which are stored as two attributes. Querying becomes inexpensive: hierarchy membership can be tested by comparing these numbers. Updating requires renumbering and is therefore expensive.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25294360?v=4)[lianhechx](/maintainers/lianhechx)[@lianhechx](https://github.com/lianhechx)

---

Top Contributors

[![lianhechx](https://avatars.githubusercontent.com/u/25294360?v=4)](https://github.com/lianhechx "lianhechx (1 commits)")

---

Tags

laraveldatabasenested sets

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lianhechx-laravel-nestedset/health.svg)

```
[![Health](https://phpackages.com/badges/lianhechx-laravel-nestedset/health.svg)](https://phpackages.com/packages/lianhechx-laravel-nestedset)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M88](/packages/mongodb-laravel-mongodb)[kalnoy/nestedset

Nested Set Model for Laravel 5.7 and up

3.8k13.9M253](/packages/kalnoy-nestedset)[watson/validating

Eloquent model validating trait.

9733.4M53](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[aimeos/laravel-nestedset

Nested Set Model for Laravel

389.9k5](/packages/aimeos-laravel-nestedset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
