PHPackages                             zavalit/phpspec-filetree - 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. zavalit/phpspec-filetree

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

zavalit/phpspec-filetree
========================

Create an application structure from a single config file, with a basic phpspec classes

06PHP

Since Jul 20Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PhpSpec FileTree Extension
==========================

[](#phpspec-filetree-extension)

how to
------

[](#how-to)

first of all extend your phpspec.yml with the reference to this extension:

```
extensions:
    - Zavalit\FileTree\Extension\PhpSpecExtension

```

create a phpspec.filetree.yml config file with class names that you want to be created and put it in a place where you run your phpspec commmand.

phpspec.filetree.yml can look smth like this:

```
filetree:
 - Zavalit:
     - Model:
        - Cart
        - Product
        - User
     - Business:
        - Checkout
        - Shippment
        - Listeneres:
           - StornoListener
           - BayListener

```

and run

```
$ phpspec filetree

```

after that you should have 7 Classes created in a psr-0 conform way:

- Zavalit\\Model\\Cart
- Zavalit\\Model\\Product
- Zavalit\\Model\\User
- Zavalit\\Business\\Checkout
- Zavalit\\Business\\Shippment
- Zavalit\\Business\\Listeneres\\StornoListener
- Zavalit\\Business\\Listeneres\\BayListener

and also relevant 7 Spec Classes.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/7e019a2502a0587807795f25698b4a8b331f9f1910a2a3f2237dc3e7ce8af48a?d=identicon)[zavalit](/maintainers/zavalit)

### Embed Badge

![Health badge](/badges/zavalit-phpspec-filetree/health.svg)

```
[![Health](https://phpackages.com/badges/zavalit-phpspec-filetree/health.svg)](https://phpackages.com/packages/zavalit-phpspec-filetree)
```

PHPackages © 2026

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