alexbowers / treegen
将标签嵌套的字符串转换为格式化的树视图
dev-master
2015-04-12 01:06 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- fabpot/php-cs-fixer: 1.5.*
- phpunit/phpunit: 4.5.*
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-09-14 17:42:42 UTC
README
用于文档中的基于文本的树生成器。
示例输入
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
示例输出
┌── 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
└──