This ruleset.xml
contains the Athens Framework code standard, for use with PHP CodeSniffer. Projects which use the Athens Framework are welcome to use this same code standard.
To download the standard, include athens/standard
if your composer.json
dev requirements:
"require-dev": {
...
"athens/standard": "1.*",
...
}
Once you have updated your composer requirements, you'll be able to issue the following command from your project root:
./vendor/bin/phpcs --standard=./vendor/athens/standard/ruleset.xml .
See the PHP CodeSniffer docs for more information, including excluding directories from analysis.
- PHP Codesniffer 2.x