PHPackages                             c4tech/nested-set - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. c4tech/nested-set

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

c4tech/nested-set
=================

A nested set implementation for easy extension.

2.1.0(10y ago)04231MITPHPPHP &gt;=5.5.9

Since Feb 24Pushed 10y ago4 watchersCompare

[ Source](https://github.com/C4Tech/laravel-nested-sets)[ Packagist](https://packagist.org/packages/c4tech/nested-set)[ RSS](/packages/c4tech-nested-set/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Laravel Nested Sets
===================

[](#laravel-nested-sets)

A package for bootstrapping nested set implementations. Made with love by C4 Tech and Design.

[![Latest Stable Version](https://camo.githubusercontent.com/b2a88e930be6d3deec360e7d22344d9198155fdd56be724d7743972eabc11723/68747470733a2f2f706f7365722e707567782e6f72672f6334746563682f6e65737465642d7365742f762f737461626c65)](https://packagist.org/packages/c4tech/nested-set)[![Build Status](https://camo.githubusercontent.com/cb77b1c1437bd3206b1b27c6dcb3ead416b522e7b2eade26b617236ede7b583e/68747470733a2f2f7472617669732d63692e6f72672f4334546563682f6c61726176656c2d6e65737465642d736574732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/C4Tech/laravel-nested-sets)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/adb622fcf665eb600847f8df8d1637bf2d8048823648e11df22cd7a4de81a60e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4334546563682f6c61726176656c2d6e65737465642d736574732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/C4Tech/laravel-nested-sets/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/fa043831bbf7deeff104c0ca84ab3bbf30be39c404e2ef33ed17beb06ab3789f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4334546563682f6c61726176656c2d6e65737465642d736574732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/C4Tech/laravel-nested-sets/?branch=master)

### Repository

[](#repository)

Our nested set repository provides a cacheable interface to the underlying model. This builds on top of the base Repository class from c4tech/support.

The property refering to the underlying model (static `$model`) is expected to be a reference to a config item but can be a hardcoded class name.

### Model

[](#model)

Our nested set model bridges the baum/baum implementation with our own base Model class from c4tech/support.

Installation and setup
----------------------

[](#installation-and-setup)

1. Add `"c4tech/nested-set": "2.x"` to your composer requirements and run `composer update`.
2. Create your own classes to extend `Model` and `Repository`.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~68 days

Total

4

Last Release

3932d ago

Major Versions

1.1.0 → 2.0.02015-08-26

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6fb89d770c4fde72e49198fe21a5ee0edf0f04f3928718bf84f5ef026336ae6?d=identicon)[impleri](/maintainers/impleri)

---

Top Contributors

[![impleri](https://avatars.githubusercontent.com/u/604612?v=4)](https://github.com/impleri "impleri (22 commits)")

### Embed Badge

![Health badge](/badges/c4tech-nested-set/health.svg)

```
[![Health](https://phpackages.com/badges/c4tech-nested-set/health.svg)](https://phpackages.com/packages/c4tech-nested-set)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M989](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M362](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)

PHPackages © 2026

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