Tool category

PHP architecture rules

Ready-to-use tools that enforce dependency boundaries and architectural constraints in an application.

Tools in this category

3 tools. Editor picks appear first; review the requirements and trade-offs of each tool.

Architecture rules

Deptrac

Active

Keep your architecture clean.

  • PHP
Type
Analyzer
PHP
^8.2
License
MIT
Install
composer require --dev deptrac/deptrac
Stars
3,051
Latest
4.7.2
Last commit
Last release
Quick pros & cons for Deptrac

ProTurns layer and module boundaries into repeatable CI checks.

ConThe dependency map must stay aligned with the architecture.

Editorially reviewed

Architecture rules

PHP Architecture Tester

Active

✔️ PHP Architecture Tester - Easy architecture testing for PHP

  • PHP
  • Static Analysis
Type
Analyzer
PHP
^8.1
License
MIT
Install
composer require --dev carlosas/phpat
Stars
1,291
Latest
0.12.5
Last commit
Last release
Quick pros & cons for PHP Architecture Tester

ProExpresses architecture constraints as readable PHP tests.

ConIts rule ecosystem is smaller than older architecture tools.

Editorially reviewed

Architecture rules

PHPArkitect

Active

Put your architectural rules under test!

  • PHP
Type
Analyzer
PHP
^8.0
License
MIT
Install
composer require --dev phparkitect/phparkitect
Stars
951
Latest
1.3.1
Last commit
Last release
Quick pros & cons for PHPArkitect

ProKeeps architecture rules beside the project's test code.

ConTeams must define enough rules to cover the design.

Editorially reviewed