# 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.

Category: Formatting
Languages: PHP

## Standard evidence

Rubric v1 · 3/8 verified · 5 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — PHP_CodeSniffer implements a selected coding standard as sniffs applied to PHP source. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/README.md)
- **Measurement** (verified) — The phpcs command detects violations of the configured standard. PHPCBF is a separate command for correctable violations. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/README.md)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (verified) — CodeRabbit checks PHP files with PHPCS and documents the supported coding standards and review configuration. Reviewed 2026-11-28. [Source](https://docs.coderabbit.ai/tools/phpcs)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

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.

### Tool command

```
vendor/bin/phpcs
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/PHPCSStandards/PHP_CodeSniffer)
- [Agent skill](/skills/phpcs/SKILL.md)
