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

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

luminee/tree
============

Build Tree And \[getChildren, getParent\]

v1.0.0(6y ago)07MITPHP

Since Sep 11Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Tree
====

[](#tree)

Build Tree And \[getChildren, getParents\]

Installation
------------

[](#installation)

Install through Composer.

```
composer require luminee/tree

```

Or download the file in `src/Tree.php`

Usage
-----

[](#usage)

```
$Tree = new Tree();
$Tree->buildTree($array);

$item = $Tree->getTree(); // Get Tree
$item = $Tree->getChildren('group1', 'group') // Find Item and Its Children
$item = $Tree->getParents('group1', 'group') // Find Item and Its Parents

$option = ['parent' => 'pre', 'children' => 'childs', 'parent_id' => 'pid']
// Customize tree keys
$Tree = new Tree($option);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2438d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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