What lives here

This section documents every linter that checks the PHP code of this site, in the order a change usually meets them:

  1. php -l and lint-php.sh — syntax gate, runs first and blocks everything else on failure.
  2. PHPCS: PHP CodeSniffer — code style reporting.
  3. phpcs.xml — ruleset file: excludes, properties, per-line opt-outs.
  4. PHPCBF — auto-fixing with proof of zero change.
  5. wrap-long-lines.sh — our own line-length wrapper with a php -l safety gate.
  6. PHPStan and Psalm — static analysis that finds real bugs, not style.

Every article follows the same shape: how to install the tool, a minimal example, a more complex real-world invocation, and the exact fixes this tool produced while cleaning up the src/ tree.