Skip to content

About

🛡️ Ultra-fast configurable PHP architecture guards — define your layers and rules, then keep them enforced

Topics

Resources

Contributing

Stars

132 stars

Watchers

2 watching

Forks

Repository files navigation

StructArmed

StructArmed

Ultra-fast configurable PHP architecture guards: define your layers and rules, then keep them enforced.

Latest Version ci build Code Coverage PHPStan Downloads

Windows macOS Linux

Ultra-fast Analysis

StructArmed is ultra-fast, even on large codebases.

StructArmed benchmark comparisons against Mago Guard and Deptrac

See the PHP toolchain benchmarks

Overview

StructArmed turns architecture decisions into executable checks. It's already used by projects such as CakePHP, CodeIgniter4, Spiral, Mezzio, Testo, and Mockery.

Start with presets for PSR, MVC, or DDD projects, then tune or extend the rules in native PHP.

See It in Action

Spot architecture violations directly in your terminal:

StructArmed violation

Quick Start

composer require --dev boundwize/structarmed
vendor/bin/structarmed init --preset=psr4
vendor/bin/structarmed analyse

Documentation

Documentation is available online, with source files kept in this repository:

Community Ecosystem

Explore community projects built around StructArmed.

Project Description
StructArmed Explorer Explore structarmed.php as an interactive layer-dependency graph in your browser.
StructArmed CakePHP CakePHP 5 presets for MVC and commands, with plugin namespace support.
SARIF PHP Converters for StructArmed Convert the StructArmed JSON report to SARIF for code scanning tools and SARIF viewers.

Contributing

Contributions are welcome. See CONTRIBUTING.md for setup, tooling, and pull request expectations.

License

StructArmed is released under the MIT License.

About

🛡️ Ultra-fast configurable PHP architecture guards — define your layers and rules, then keep them enforced

Topics

Resources

Contributing

Stars

132 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages