PHP Architecture Tester is a PHPStan extension (Static Analysis tool) designed to verify architectural requirements.
It provides a natural language abstraction that enables you to define your own architectural rules and and assess their compliance in your code.
Require PHPat with Composer:
composer require --dev phpat/phpatActivate the extension using one of the following methods:
Automatic activation
composer require --dev phpstan/extension-installerManual activation
# phpstan.neon
includes:
- vendor/phpat/phpat/extension.neonFor further information, check out the documentation at phpat.dev
You can visit the Examples section to get some ideas of typical use cases.
PHP Architecture Tester is open source, contributions are welcome!
Warning
The launch of early-stage releases (0.x.x) could break the API according to Semantic Versioning 2.0. We are using minor for breaking changes until the release of the stable1.0.0version.