PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
This is the first stable release of the 3.0 branch, and is a large refactoring of the code base. It breaks backwards compatibility for all custom sniffs and custom reports. An upgrade guide for sniff and report developers is available here: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Version-3.0-Upgrade-Guide
Note: If you only use the built-in coding standards (such as PEAR or PSR2), or you have a custom ruleset.xml file that only makes use of the sniffs and reports distributed with PHP_CodeSniffer, you do not need to make any changes to begin using the 3.0.0 version.
There are no future planned releases for the 2.x branch, but there may still be additional 2.9.x versions released for a time due to the number of changes required to upgrade custom sniffs for 3.0. The intention is to limit 2.9.x releases to serious bug and security fixes only.
For a full list of changes from the 2.x version, please review the following changelogs: https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0a1 https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0RC1 https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0RC2 https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0RC3 https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0RC4