Skip to content
CAI
Produce a survey ↗Verify a survey

Chetkov/php-clean-architecture

This system is a PHP-based tool for enforcing and analyzing clean architecture principles within a codebase. It utilizes Abstract Syntax Tree (AST) parsing to discover source units, map dependencies, and detect architectural violations against configurable component rules. The tool provides a CLI interface to check for violations, generate self-contained HTML reports with interactive visualizations, and track architectural history over time.

73.1

Strong · 29 July 2026

7.2k

lines of production code

PHP

with JavaScript

2

bus factor · 3 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2020–2021 · Initial release and architecture analysis engine

This period marks the initial release of the PHP Clean Architecture tool, establishing the core infrastructure for static analysis and reporting. The work focused on building the AST-based dependency finder, defining the clean architecture model classes, and implementing the CLI interface for checking and generating architectural reports.

15 changes

2026 · SPA report and AST analysis

This period focused on modernizing the reporting interface by replacing legacy views with a React-based Single Page Application, while simultaneously introducing AST-based source and dependency discovery for PHP files. The work also included comprehensive test coverage for the new analysis components, configuration inheritance, and report generation lifecycle.

17 changes

CAI lens gauges

Survey your own repository

Chetkov/php-clean-architecture was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 29 July 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 1c0e31f361 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards