Enforce that a domain layer never imports from an infrastructure layer
Check a project against PSR-4, PSR-1, PSR-12, MVC, or DDD presets
Define custom layers and rules for your own project structure
Catch architecture violations automatically in CI before they spread
| boundwize/structarmed | kukuhtw/toko_kopi | myneid/laravel-db-tui | |
|---|---|---|---|
| Stars | 14 | 15 | 15 |
| Language | PHP | PHP | PHP |
| Setup difficulty | easy | moderate | easy |
| Complexity | 3/5 | 3/5 | 2/5 |
| Audience | developer | pm founder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires defining a structarmed.php config before analysis is useful.
StructArmed is a PHP tool that turns architecture decisions into automated checks. Instead of documenting your project's structural rules in a wiki, you define them in a PHP configuration file and then run an analysis command that reports any violations. The idea is to catch dependency boundary violations, for example, a domain layer importing from an infrastructure layer, before they silently become habits. The setup flow starts with an init command that generates a structarmed.php config file in your project root. The tool ships with ready-made presets for common architecture styles: PSR-4 for verifying source paths match Composer namespace mappings, PSR-1 for basic coding standards, PSR-12 for visibility conventions, MVC for thin controllers and layered separation, and DDD for domain-driven design conventions around entities, value objects, repositories, events, and services. You can enable one preset, multiple presets, or all at once. Beyond presets, you can define your own layers by mapping them to directory paths or namespace patterns, then declare a ruleset specifying which layers are allowed to depend on which others. Custom rules can be added, existing preset rules can be replaced, and individual rules or paths can be skipped for known exceptions without disabling an entire check. Running structarmed analyse scans your codebase and reports each violation with the relevant class and the rule it broke. If everything passes, it prints a clean summary. StructArmed is written in PHP and installed as a Composer development dependency. The README notes support for Windows, macOS, and Linux. The full README is longer than what was provided.
A PHP tool that turns your project's architecture rules into automated checks that catch layer violations before they become habits.
Mainly PHP. The stack also includes PHP, Composer.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.