PHPackages                             goez/tree-data - 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. goez/tree-data

ActiveLibrary

goez/tree-data
==============

6.0.0(2y ago)1613MITPHPPHP &gt;=7.4

Since Sep 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/goez-tools/tree-data)[ Packagist](https://packagist.org/packages/goez/tree-data)[ RSS](/packages/goez-tree-data/feed)WikiDiscussions master Synced 3d ago

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

Adjacency List model for Laravel Eloquent
=========================================

[](#adjacency-list-model-for-laravel-eloquent)

[![Build Status](https://github.com/goez-tools/tree-data/actions/workflows/php.yml/badge.svg)](https://github.com/goez-tools/tree-data/actions/workflows/php.yml/badge.svg)

Goez/TreeData is an adjacency list visitor for Eloquent model.

Usage
-----

[](#usage)

Goez/TreeData is designed for Laravel 4.2+, just follow the steps below:

1. Install from composer.

    ```
    composer require goez/tree-data
    ```
2. Add `tree` method in your eloquant model:

    ```
    use Goez\TreeData\Tree;
    use Illuminate\Database\Eloquent\Model as Eloquent;

    class Menu extends Eloquent
    {
        /**
         * @return \Goez\TreeData\Visitor\Eloquent
         */
        public function tree()
        {
            return Tree::accept($this);
        }
    }
    ```

Examples
--------

[](#examples)

Find examples in `tests` folder.

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

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 ~729 days

Recently: every ~909 days

Total

6

Last Release

967d ago

Major Versions

0.1.2 → 4.0.02015-01-08

4.1.0 → 5.0.02022-10-25

5.0.0 → 6.0.02023-09-21

PHP version history (4 changes)0.1.1PHP &gt;=5.3.0

4.0.0PHP &gt;=5.4.0

4.1.0PHP &gt;=5.5.9

5.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/000012ed8f10873694d29e2f60b7b71171c088d6fd655a695210dd2fe46172b9?d=identicon)[jaceju](/maintainers/jaceju)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/goez-tree-data/health.svg)

```
[![Health](https://phpackages.com/badges/goez-tree-data/health.svg)](https://phpackages.com/packages/goez-tree-data)
```

PHPackages © 2026

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