deptrac
Deptrac is a PHP static code analysis tool designed to enforce and visualize architectural rules. It allows defining architectural layers and communication rules to ensure module independence and reusability. Seamlessly integrates with CI pipelines to help maintain architecture guidelines. Offers visualization through Graphviz or Mermaidjs. Installation is via Composer, with configuration in YAML or PHP. Supports analyzing older PHP versions compatible with nikic/php-parser.