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