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 1mo ago

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 10% 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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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