# WordPress Coding Standards for PHP_CodeSniffer

A set of PHP_CodeSniffer rules that check PHP code against the official WordPress coding conventions.

This project is a collection of PHP_CodeSniffer sniffs that validate code written for WordPress against the official WordPress Coding Standards, helping enforce consistent code quality and style. It installs via Composer, either into a single project or globally, and registers its rulesets with PHP_CodeSniffer automatically through a Composer plugin.

It supports subsets of the standard, custom rulesets, and customizing individual sniff behavior, and can be run from the command line, from within an IDE that integrates with PHPCS, or automatically as part of a continuous-integration pipeline. It requires PHP 7.2 or higher with several extensions enabled, and the project notes it depends on ongoing funding to continue maintenance.

Website: https://github.com/WordPress/WordPress-Coding-Standards
