# Alto Tree

HTML: [altophp.com/tree](https://altophp.com/tree/)

Alto Tree builds, parses, traverses, prints, manipulates, and compares
hierarchies of files and directories.

```php
use Alto\Tree\Printer\TreePrinter;
use Alto\Tree\TreeBuilder;

$tree = TreeBuilder::fromPaths([
    'project/src/App.php',
    'project/tests/AppTest.php',
], 'project');

echo (new TreePrinter())->print($tree);
```

## Documentation

- [Installation](https://altophp.com/tree/installation.md): install the package and verify the runtime.
- [Getting started](https://altophp.com/tree/getting-started.md): build and print a first tree.
- [Building](https://altophp.com/tree/building.md): create trees from paths, directories, Git, or custom providers.
- [Parsing](https://altophp.com/tree/parsing.md): read tree-shaped text back into objects.
- [Printing](https://altophp.com/tree/printing.md): filter, sort, and format tree output.
- [Traversal](https://altophp.com/tree/traversal.md): collect information or visit nodes with custom behavior.
- [Editing](https://altophp.com/tree/editing.md): split, merge, append, flatten, and rebuild trees.
- [Comparing](https://altophp.com/tree/comparing.md): find and print added, removed, and unchanged paths.

---

Next: [Installation](https://altophp.com/tree/installation.md)

---

ALTO\TREE: [altophp.com/tree](https://altophp.com/tree/)
ALTO(PHP): [altophp.com](https://altophp.com/)
