PHPackages                             theartoflogic/doctrine-tree-extension - 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. theartoflogic/doctrine-tree-extension

ActiveLibrary[Database &amp; ORM](/categories/database)

theartoflogic/doctrine-tree-extension
=====================================

Adds tree behaviors to your doctrine entities.

18PHP

Since Jan 24Pushed 13y agoCompare

[ Source](https://github.com/theartoflogic/doctrine-tree-extension)[ Packagist](https://packagist.org/packages/theartoflogic/doctrine-tree-extension)[ RSS](/packages/theartoflogic-doctrine-tree-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Doctrine Tree Extension
=======================

[](#doctrine-tree-extension)

This library contains an extension for Doctrine that makes it quick and easy to add hierarchical tree structures to your entities. With just a couple of configurations you can start managing your tree structures effortlessly.

**Version 1.0.0**

[![Build Status](https://camo.githubusercontent.com/5bc63c197b4cc74d11017d3b0ae30b79960611eba08e3fede3325eb012ab1254/68747470733a2f2f7472617669732d63692e6f72672f7468656172746f666c6f6769632f646f637472696e652d747265652d657874656e73696f6e2e706e67)](https://travis-ci.org/theartoflogic/doctrine-tree-extension)

### Features

[](#features)

**Note:** At this time Closure trees are the only supported method. I am actively developing support for other tree models and will release an update as soon as they are ready.

- **Closure Tree**: Easily manage the closure table, including the option to specify the depth of each node.

### Upcoming Features

[](#upcoming-features)

- **Nested Set**: Easily manage the nested set data.

### Running the tests:

[](#running-the-tests)

To run the tests follow these instructions:

- Install composer (needed to install dependencies).
- Go to the root directory for the extension.
- Run (install dependencies): composer --dev update
- Run (execute tests): phpunit

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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/5b062c37264a729dbd66373472b86c5f087cc18e2504b4dc4012f4b316378799?d=identicon)[theartoflogic](/maintainers/theartoflogic)

---

Top Contributors

[![theartoflogic](https://avatars.githubusercontent.com/u/518312?v=4)](https://github.com/theartoflogic "theartoflogic (23 commits)")

### Embed Badge

![Health badge](/badges/theartoflogic-doctrine-tree-extension/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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