aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link
coding-standards php php-codesniffer

CodingStandard

CI Scrutinizer Code Quality codecov

Latest Stable Version Total Downloads

The PHP_CodeSniffer coding standard I'm using on all of my projects.

Standard itself and it's test suite complies PHPCS standard.

Usage

Only PHP_CodeSniffer 3.x and later versions are supported. For PHP_CodeSniffer 1.x and 2.x use "1.0" branch.

  1. clone this repository
  2. 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.