# Slevomat Coding Standard

> Extra PHP_CodeSniffer sniffs for safer, cleaner and consistently formatted PHP

Source: https://talira.ai/catalog/slevomat-coding-standard-dfdcdx7p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Slevomat.cz, s.r.o.](https://talira.ai/orgs/slevomat.md)

Slevomat Coding Standard is an open source set of sniffs for [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md), made by Slevomat.cz. Its sniffs fall into three groups: functional ones that make code safer and behave better, cleaning ones that find dead code, and formatting ones for a consistent look. Many of them fix their errors automatically with phpcbf, and some can be suppressed locally. You pick the sniffs you want or exclude ones you don't in your ruleset.

## Links

- GitHub: https://github.com/slevomat/coding-standard

## Problems it solves

- enforce strict types and catch unused code in a PHP project with phpcs
- add more PHP_CodeSniffer rules than PSR-12 gives me
- automatically fix PHP code style issues in CI

## Features

- functional sniffs that improve code safety and behaviour
- cleaning sniffs that detect dead code
- formatting sniffs for consistent code style
- automatic fixing for many sniffs
- local suppression of sniff checks

## Limitations

- Sniffs expect syntactically valid code and can behave unexpectedly on files with parse errors; its makers advise running PHP Parallel Lint first.[^1]

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.81, adoption 0.63, momentum 0.33, community 0.84, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 31 commits in the last 90 days
- latest release 8.32.0 4 days ago
- 1.5k GitHub stars
- 127 contributors
- accepts sponsorship (Github, Tidelift)
- backed by Slevomat.cz, s.r.o.

## Related

- Works with [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md)

## Alternatives

- [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md): Detect and fix coding standard violations in PHP
- [laminas-coding-standard](https://talira.ai/catalog/laminas-coding-standard-wf2s5eqd.md): The Laminas Project's PHP_CodeSniffer coding standard ruleset, built on PSR-12
- [Easy Coding Standard (ECS)](https://talira.ai/catalog/easy-coding-standard-ecs-1f178a34.md): Runs PHP_CodeSniffer and PHP-CS-Fixer rules together, fast
- [WordPress Coding Standards for PHP_CodeSniffer](https://talira.ai/catalog/wordpress-coding-standards-for-php-codesniffer-598761fd.md): PHP_CodeSniffer rules that enforce WordPress coding conventions
- [PHP_CodeSniffer Standards Composer Installer Plugin](https://talira.ai/catalog/php-codesniffer-standards-composer-installer-plugin-vpxtv44k.md): Composer plugin that registers installed PHP_CodeSniffer coding standards automatically
- [PHPMD](https://talira.ai/catalog/phpmd-5bvh074k.md): PHP Mess Detector: finds bugs and code smells in PHP

## Sources

[^1]: https://github.com/slevomat/coding-standard/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/slevomat/coding-standard/blob/master/LICENSE.md (checked 28 Nov 2026)
