Back to directory

Slevomat Coding Standard

A collection of PHP_CodeSniffer sniffs that improve the safety and behavior of PHP code, detect dead code, and enforce consistent formatting.

Slevomat Coding Standard

Slevomat Coding Standard is a set of sniffs for PHP_CodeSniffer, grouped into three kinds: functional sniffs that improve the safety and behavior of code, cleaning sniffs that detect dead code, and formatting sniffs that keep code style consistent.

Many sniffs can fix the errors they report automatically, and some can be suppressed locally when a rule does not fit a particular line. The project documents each sniff alphabetically along with installation steps, how to choose or exclude sniffs when running PHP_CodeSniffer, how to fix errors automatically, and how to suppress a sniff locally.

It targets PHP 7 and PHP 8 codebases and is released under the MIT license.

More in Code quality

See all 94
  • Critic

    critic.run

    A code-change viewer, backed by Y Combinator, built for reviewing work written by coding agents, presenting a plain-language narrative of each change alongside the diff and a running conversation with the agent.

  • GitIntel

    hoangsonww.github.io

    An MCP server that computes git repository analytics such as hotspots, churn, temporal coupling, knowledge maps and risk scoring entirely from local commit history, for AI coding agents like Claude Code and Codex.

  • Axint

    axint.ai

    A verification layer for AI coding agents working on Apple projects: it runs real Xcode builds and tests against the Swift an agent wrote, reconciles static analysis findings against that evidence, and returns a signed proof with the exact repairs still needed.