coding-standard enterio-coding-standard
CodeSniffer ruleset for the enterio coding standard
stedekay/enterio-coding-standard
CodeSniffer ruleset for the enterio coding standard
- Thursday, April 28, 2016
- by stedekay
- Repository
- 1 Watchers
- 0 Stars
- 579 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 107 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
, (*1)
Enterio PHP CodeSniffer Coding Standard
This is a custom coding standard, which is used by all enterio projects., (*2)
Installation
Composer
This standard can be installed with the Composer dependency manager., (*3)
-
Install Composer, (*4)
-
Install the coding standard as a dependency of your project, (*5)
composer require --dev stedekay/enterio-coding-standard:~1.0
-
Add the coding standard to the PHP_CodeSniffer install path, (*6)
vendor/bin/phpcs --config-set installed_paths vendor/stedekay/enterio-coding-standard
-
Check the installed coding standards for "Symfony2", (*7)
vendor/bin/phpcs -i
-
Done!, (*8)
vendor/bin/phpcs /path/to/code
 Stand-alone
-
Install PHP_CodeSniffer, (*9)
-
Checkout this repository, (*10)
git clone git://github.com/stedekay/enterio-coding-standard.git
-
Add the coding standard to the PHP_CodeSniffer install path, (*11)
phpcs --config-set installed_paths /path/to/enterio-coding-standard
Or copy/symlink this repository's "Symfony2"-folder inside the phpcs Standards
directory, (*12)
-
Check the installed coding standards for "Symfony2", (*13)
phpcs -i
-
Done!, (*14)
phpcs /path/to/code