PHPackages                             alexbowers/treegen - 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. alexbowers/treegen

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

alexbowers/treegen
==================

Convert a tabbed nested string into a formatted tree view

012PHP

Since Apr 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/alexbowers/treegen)[ Packagist](https://packagist.org/packages/alexbowers/treegen)[ RSS](/packages/alexbowers-treegen/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

treegen
=======

[](#treegen)

A text based tree generator for use in documents.

Example Input
-------------

[](#example-input)

```
Level 0 Child 1
Level 0 Child 2
    Level 1 Child 1
        Level 1 Child 1 Grandchild 1
    Level 1 Child 2
        Level 1 Child 2 Grandchild 1
            Level 1 Child 2 Grandchild 1 Great-grandchild 1
            Level 1 Child 2 Grandchild 1 Great-grandchild 2
            Level 1 Child 2 Grandchild 1 Great-grandchild 3
        Level 1 Child 2 Grandchild 2
            Level 1 Child 2 Grandchild 2 Great-grandchild 1

```

Example Output
--------------

[](#example-output)

```
┌── Level 0 Child 1
├── Level 0 Child 2
|   ├── Level 1 Child 1
|   |   └── Level 1 Child 1 Grandchild 1
|   └── Level 1 Child 2
|   |   ├── Level 1 Child 2 Grandchild 1
|   |   |   ├── Level 1 Child 2 Grandchild 1 Great-grandchild 1
|   |   |   ├── Level 1 Child 2 Grandchild 1 Great-grandchild 2
|   |   |   └── Level 1 Child 2 Grandchild 1 Great-grandchild 3
|   |   └── Level 1 Child 2 Grandchild 2
|   |   |   └── Level 1 Child 2 Grandchild 2 Great-grandchild 1
└──

```

Still under active development. Will work on cleaning up code, and output.
--------------------------------------------------------------------------

[](#still-under-active-development-will-work-on-cleaning-up-code-and-output)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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://avatars.githubusercontent.com/u/842974?v=4)[Alex Bowers](/maintainers/alexbowers)[@alexbowers](https://github.com/alexbowers)

---

Top Contributors

[![alexbowers](https://avatars.githubusercontent.com/u/842974?v=4)](https://github.com/alexbowers "alexbowers (21 commits)")

### Embed Badge

![Health badge](/badges/alexbowers-treegen/health.svg)

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

###  Alternatives

[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)[cmixin/enhanced-period

Carbon mixin to convert `Carbon\\CarbonPeriod` to `Spatie\\Period\\Period` and vice versa

1963.2k2](/packages/cmixin-enhanced-period)[nextgen-tech/gs1-decoder

1024.8k](/packages/nextgen-tech-gs1-decoder)

PHPackages © 2026

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