The PHP_CodeSniffer coding standard I'm using on all of my projects.
Standard itself and it's test suite complies PHPCS standard.
- clone this repository
- run following command in project directory:
$> phpcs --standard="/path/to/CodingStandard/CodingStandard" library tests
or by make your IDE (instructions for PhpStorm) to check them automatically.