Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 929 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 929 Bytes

Latest Stable Version

Standard

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.

Use

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.

Requirements

  • PHP Codesniffer 2.x