PHPackages                             thunderid/eloquent-tree-model - 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. thunderid/eloquent-tree-model

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

thunderid/eloquent-tree-model
=============================

eloquent tree structured model

04PHP

Since Mar 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ThunderID/EloquentTreeModel)[ Packagist](https://packagist.org/packages/thunderid/eloquent-tree-model)[ RSS](/packages/thunderid-eloquent-tree-model/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\#Attributes

```
name				: name of the node
tree_path			: path of the node
tree_path_delimiter	: delimiter of the path

```

\#Usage

- Create a model class
- Add this code to your model:

```
use \ThunderID\EloquentTreeModel\ITreeModel;
use \ThunderID\EloquentTreeModel\TreeModelTrait;
use \ThunderID\EloquentTreeModel\TreeModelObserver;

```

- Update your model to implements ITreeModel

```
class MyModel extends Model implements ITreeModel

```

- Use TreeModel trait in your model

```
use TreeModelTrait;

```

- Assign observer to your model

```
static::observe(new TreeModelObserver);

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thunderid-eloquent-tree-model/health.svg)

```
[![Health](https://phpackages.com/badges/thunderid-eloquent-tree-model/health.svg)](https://phpackages.com/packages/thunderid-eloquent-tree-model)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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