Tool

PHP-CS-Fixer

Automatic coding standards: PSR-12 and project rules as a CI gate, not a bike-shed in review.

PHP-CS-Fixer rewrites the code. The particularity is that style leaves the merge request: no more comments about spaces. .php-cs-fixer.php is the contract; --dry-run in GitLab fails the pipeline.

It is not a linter for bugs (that is PHPStan). Mixing the two in the same job is common: format, then analyse, then test.

A senior PHP codebase looks like one author. That is this tool, run everywhere, including locally on save or as a Git hook.

cs.symfony.com

Related