slevomat/coding-standard
Slevomat Coding Standard for PHP_CodeSniffer provides many useful sniffs observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 97
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 16
- age_days: 3909
- days_rel: 33
- days_push: 19
- n_releases_24m: 28
Adoption not part of the score
1480 stars · 193 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of PHP_CodeSniffer sniffs for PHP covering functional safety, dead code detection, and code formatting rules. Many sniffs support automatic error fixing and local suppression.
Use cases
- enforce consistent code style in a PHP project
- detect dead code and unused imports
- automatically fix formatting errors with phpcbf
- add extra sniffs beyond PHP_CodeSniffer defaults
- require trailing commas and sorted arrays in PHP codebases
When to choose
- you already use PHP_CodeSniffer and want stricter, more opinionated rules
- you want auto-fixable style and cleanliness sniffs for PHP 7/8 code
When to avoid
- you use a different language than PHP
- you prefer PSR-12 only or a formatter like PHP-CS-Fixer instead of phpcs sniffs
Facets
library · maturity active
linter formatter developer-tools developer-tools programming-languages testing php cli phpcs coding-standard code-style sniffs static-analysis
1 source
- readme: https://github.com/slevomat/coding-standard · fetched 2026-08-28 · 9ab613a82477
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| slevomat/coding-standard | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="slevomat/coding-standard")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem