PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Project: CodeSniffer for PSR's (PSR-0, PSR-1 & PSR-2)

Note: This article was originally published at PHPDeveloper on 10 June 2012.
PHPDeveloper

Klaus Silveira has created a set of PHP_CodeSniffer rules that can be used to test your code for the recently approved PSR-1 & PSR-2 standards.

This is a PHP_CodeSniffer sniff to check against the PHP Standard Resolutions: PSR-0, PSR-1 and PSR-2. Those standards were approved by the PHP Framework Interoperability Group. You can read more about the PHP FIG and the PSR's on this excellent article by Paul Jones.

The github repository also provides an overview of the standards themselves and how to get these sniffs installed.