structuraphp / structura
Architectural testing for PHP
0.7.0
2026-03-22 16:42 UTC
Requires
- php: ^8.2|^8.3|^8.4|^8.5
- nikic/php-parser: ^5.4
- symfony/console: ^7.2|^8.0
- symfony/filesystem: ^7.2|^8.0
- symfony/finder: ^7.2|^8.0
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.9
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.5|^12.5|^13.0
- rector/rector: ^2.3
- shipmonk/composer-dependency-analyser: ^1.8
This package is not auto-updated.
Last update: 2026-03-22 16:44:52 UTC
README
About
Structura is an architectural testing tool for PHP, designed to help developers maintain a clean and consistent code structure.
📖 Documentation
Full documentation is available at structuraphp.github.io.
Quick Start
Installation
composer require --dev structuraphp/structura
Configuration
php structura init
Run
php bin/structura analyze
Requirements
| PHP Version | Structura 0.x |
|---|---|
| <= 8.1 | ✗ Unsupported |
| 8.2 / 8.3 / 8.4 / 8.5 | ✓ Supported |
With PHPUnit
Structura can integrate architecture testing with PHPUnit:
https://github.com/structuraphp/structura-phpunit
Inspiration
StructuraPHP is the result of current tools failing to meet, or only partially meeting, our needs as an architecture testing tool.
Our design and features are heavily inspired by the following tools: