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

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

horde/tree
==========

Tree rendering library

v3.0.0(5d ago)13.4k↑31.9%33LGPL-2.1-onlyPHPPHP ^8.1CI failing

Since Sep 19Pushed yesterday5 watchersCompare

[ Source](https://github.com/horde/Tree)[ Packagist](https://packagist.org/packages/horde/tree)[ Docs](https://www.horde.org/libraries/Horde_Tree)[ RSS](/packages/horde-tree/feed)WikiDiscussions FRAMEWORK\_6\_0 Synced today

READMEChangelog (3)Dependencies (11)Versions (12)Used By (3)

Horde Tree
==========

[](#horde-tree)

Tree data-structure and rendering library for PHP 8.1+.

Provides both a legacy PSR-0 API (`Horde_Tree`) and a modern PSR-4 API (`Horde\Tree`)

Install
-------

[](#install)

```
composer require horde/tree
```

Quick Start
-----------

[](#quick-start)

```
use Horde\Tree\Node;
use Horde\Tree\TreeBuilder;
use Horde\Tree\Renderer\ResponsiveRenderer;

$tree = (new TreeBuilder('nav'))
    ->addNode(new Node('inbox', 'Inbox', params: ['icon' => '/mail.svg', 'url' => '/mail']))
    ->addNode(new Node('unread', 'Unread (5)', parentId: 'inbox'))
    ->build();

echo (new ResponsiveRenderer())->render($tree);
```

Renderers
---------

[](#renderers)

RendererOutput`HtmlRenderer`Div-based HTML with row classes`SelectRenderer``` elements for ```SimplehtmlRenderer`Lightweight divs with `[+]/[-]` toggles`ResponsiveRenderer`Semantic HTML5 with `/` and ARIA *(unstable)*Links
-----

[](#links)

- [Migration guide](doc/UPGRADING.md) — upgrading from v2 to v3
- [Example CSS](doc/example/responsive-tree.css) — reference stylesheet for ResponsiveRenderer
- [Example PHP](doc/example/responsive-tree.php) — runnable demo page
- [Changelog](doc/Horde/Tree/changelog.yml)

License
-------

[](#license)

LGPL-2.1-only — see [LICENSE](LICENSE).

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance100

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community30

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 57% 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 ~458 days

Recently: every ~483 days

Total

8

Last Release

5d ago

Major Versions

2.0.5 → 3.0.0alpha12021-02-24

PHP version history (4 changes)2.0.5PHP ^5.3 || ^7

3.0.0alpha1PHP ^7

v3.0.0alpha4PHP ^7.4 || ^8

v3.0.0beta1PHP ^8.1

### Community

Maintainers

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

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

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

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

![](https://www.gravatar.com/avatar/816e2b926f25f8cd2939054c7a7173011b4303d690e25ab61bf33cf8c7cf71ae?d=identicon)[tdannhauer](/maintainers/tdannhauer)

---

Top Contributors

[![yunosh](https://avatars.githubusercontent.com/u/379318?v=4)](https://github.com/yunosh "yunosh (94 commits)")[![slusarz](https://avatars.githubusercontent.com/u/381003?v=4)](https://github.com/slusarz "slusarz (39 commits)")[![ralflang](https://avatars.githubusercontent.com/u/646976?v=4)](https://github.com/ralflang "ralflang (26 commits)")[![mrubinsk](https://avatars.githubusercontent.com/u/66822?v=4)](https://github.com/mrubinsk "mrubinsk (5 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (1 commits)")

---

Tags

hierarchy

### Embed Badge

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

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

###  Alternatives

[horde/horde

Horde base application

583.0k62](/packages/horde-horde)[horde/kronolith

Calendar and scheduling application

101.3k4](/packages/horde-kronolith)[oat-sa/tao-core

TAO core extension

66143.7k119](/packages/oat-sa-tao-core)[horde/imp

Webmail application

261.1k](/packages/horde-imp)[horde/imap_client

IMAP client library

275.5k16](/packages/horde-imap-client)

PHPackages © 2026

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