Configurable PHP architecture guards: define your layers and rules, then keep them enforced.
StructArmed turns architecture decisions into executable checks. Start with presets for PSR, MVC, or DDD projects, then tune or extend the rules in native PHP.
Contents
Why Use StructArmed
- Make architecture decisions executable, not just documented.
- Start with ready-made presets for common architecture styles.
- Tune, override, or skip individual preset rules in native PHP code.
- Catch boundary violations during local development and CI.
Where To Go Next
- Quick Start covers installation, initialization, and the available starter presets.
- Configuration shows how to define custom layers, skips, and preset rule replacements.
- Layers and Rulesets explains path-based layers, namespace-based layers, and dependency rules.
- Available Rules lists every built-in rule class you can register, replace, or reuse.
- Custom Rules And Presets covers project-specific checks and reusable architecture presets.
- Presets lists the included PSR, MVC, and DDD presets.
- CLI documents analyse, report, version, and baseline commands.
- PHPUnit Extension explains how to fail your test suite on architecture violations.
- Cache covers analysis cache configuration.
- Baselines covers legacy-project adoption without hiding new violations.