PHPCS.
Enforce a PHP coding standard
Select a coding standard such as PSR-12 in the repository ruleset. Check source paths and report the sniff responsible for every violation.
PHP
Community rubric · v1
The evidence
One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.
Latest evidence review ·
Definition
VerifiedPHP_CodeSniffer implements a selected coding standard as sniffs applied to PHP source.
Measurement
VerifiedThe phpcs command detects violations of the configured standard. PHPCBF is a separate command for correctable violations.
Conformance
UnknownNo reviewed evidence is recorded for this dimension.
What would demonstrate a violation? Contribute evidence ↗
CI enforcement
UnknownNo reviewed evidence is recorded for this dimension.
Can a change trigger a useful check? Contribute evidence ↗
Getting started
UnknownNo reviewed evidence is recorded for this dimension.
Can a newcomer complete a first run? Contribute evidence ↗
Real-world adoption
VerifiedCodeRabbit checks PHP files with PHPCS and documents the supported coding standards and review configuration.
Agent guidance
UnknownNo reviewed evidence is recorded for this dimension.
Can an agent act on a specific finding? Contribute evidence ↗
Agent portability
UnknownNo reviewed evidence is recorded for this dimension.
Does the practice work in two agent harnesses? Contribute evidence ↗
Use this standard
Run the check with the tool installed and configured for your project.
vendor/bin/phpcs
Agent prompt
Use PHPCS in this repository to meet this standard: Enforce a PHP coding standard. Select a coding standard such as PSR-12 in the repository ruleset. Check source paths and report the sniff responsible for every violation. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.