aik099 / coding-standard
The PHP_CodeSniffer coding standard I'm using on all of my projects.
Installs: 38 419
Dependents: 13
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 2
Open Issues: 47
Requires (Dev)
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.0
This package is auto-updated.
Last update: 2024-11-07 23:32:13 UTC
README
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.
- 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.