Skip to content
DEPRECATED : check this url for the new version (PHP 5.4 compatible) :
Latest commit 14ac4eb Oct 11, 2013 @wimg Update README.markdown
Failed to load latest commit information.
Sniffs/PHP Prefix the error with the php version being checked for Mar 5, 2012


This version is out of date. Check for the new version

PHP 5.3 Compatibility Coding Standard for PHP_CodeSniffer

This is a set of sniffs for PHP_CodeSniffer that checks for PHP 5.3 compatibility.


  • Install PHP_CodeSniffer with pear install PHP_CodeSniffer (PHP_CodeSniffer 1.3 or later is required). If pear installs PHP_CodeSniffer 1.2.x, use pear install PHP_CodeSniffer-alpha
  • Checkout this repository as PHP53Compatibility into the PHP/CodeSniffer/Standards directory.
  • Use the coding standard with phpcs --standard=PHP53Compatibility.

More information can be found on Wim Godden's blog.

Something went wrong with that request. Please try again.