Debugging and Analysis

Debugging, Static Analysis and PSR Standards

Tests (Testing with PHPUnit) tell you that something broke. The tools here tell you why, or stop the bug before the code runs. Every example works on the bookshop classes Product, Catalog and Cart in a Composer 5,243 project at /app (namespace Acme\Shop\, Subsection 4.12.5), with the versions current on 23 September 2026.

Where each tool acts: before the code runs, while it runs, and in CI
Where each tool acts: before the code runs, while it runs, and in CI

Subsections