PHPackages                             nagyatka/basil - 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. nagyatka/basil

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

nagyatka/basil
==============

Tree data structure for PHP

v1.0.2(6y ago)022Apache-2.0PHP

Since Sep 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nagyatka/basil)[ Packagist](https://packagist.org/packages/nagyatka/basil)[ Docs](https://github.com/nagyatka/basil)[ RSS](/packages/nagyatka-basil/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

[![](/docs/images/basil.jpg)](/docs/images/basil.jpg)

basil
=====

[](#basil)

basil is a simple and flexible tree data structure for php which also provides wide range of import/export functionalities. (implementation is based on [nicmart/Tree](https://github.com/nicmart/Tree))

We started the development because different tree implementation had already been existed, however we didn't find such an implementation, which can provide wide range of import/export functions and high level tree operations as well.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3961400?v=4)[nagyatka](/maintainers/nagyatka)[@nagyatka](https://github.com/nagyatka)

---

Top Contributors

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

---

Tags

adjacency-listdata-structuresjsonnested-setphptreephptreenested-setdata structure

### Embed Badge

![Health badge](/badges/nagyatka-basil/health.svg)

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

###  Alternatives

[loophp/phptree

An implementation of tree data structure

981.8M2](/packages/loophp-phptree)[efureev/laravel-trees

Multi-Tree structures for Laravel

14253.3k4](/packages/efureev-laravel-trees)

PHPackages © 2026

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