Skip to content

AthensFramework/Standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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