PHPCSStandards/PHP_CodeSniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 96
- Longevity 73
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21.0
- age_days: 1030
- days_rel: 27
- days_push: 12
- n_releases_24m: 19
Adoption not part of the score
1551 stars · 115 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PHP_CodeSniffer is a set of two PHP scripts: phpcs tokenizes PHP files to detect violations of a defined coding standard, and phpcbf automatically corrects those violations. It is the official continuation of the abandoned squizlabs package and supports standards like PSR1 and PSR12.
Use cases
- enforce PSR-12 coding standards on a PHP codebase
- automatically fix coding standard violations in PHP files
- run code style checks in CI pipelines
- check PHP code style before committing
- customize a coding standard for a PHP team
When to choose
- you need to enforce or auto-fix PHP coding standards
- you want a mature, widely adopted PHP linting tool with CI integration
When to avoid
- you need full static analysis beyond style checking (use PHPStan or Psalm)
- you are linting languages other than PHP
Facets
cli-tool · maturity active
linter formatter static-site-generator cli developer-tools developer-tools testing php cli cross-platform coding-standards phpcs phpcbf psr12 static-analysis code-quality qa command-line automation
1 source
- readme: https://github.com/PHPCSStandards/PHP_CodeSniffer · fetched 2026-08-28 · bb55b197f8fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PHPCSStandards/PHP_CodeSniffer | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="PHPCSStandards/PHP_CodeSniffer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem