2017 © Pedro Pelรกez
 

library treegen

Convert a tabbed nested string into a formatted tree view

image

alexbowers/treegen

Convert a tabbed nested string into a formatted tree view

  • Sunday, April 12, 2015
  • by alexbowers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

treegen

A text based tree generator for use in documents., (*1)

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

โ”Œโ”€โ”€ 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.

The Versions

12/04 2015

dev-dev

dev-dev https://alexbowers.github.io/treegen

Convert a tabbed nested string into a formatted tree view

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4.0

 

The Development Requires

generator list tree formatted tabbed

12/04 2015

dev-master

9999999-dev https://alexbowers.github.io/treegen

Convert a tabbed nested string into a formatted tree view

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4.0

 

The Development Requires

generator list tree formatted tabbed