Download the PHP package cryonighter/cryonighter-coding-standard without Composer
On this page you can find all versions of the php package cryonighter/cryonighter-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cryonighter/cryonighter-coding-standard
More information about cryonighter/cryonighter-coding-standard
Files in cryonighter/cryonighter-coding-standard
Package cryonighter-coding-standard
Short Description CodeSniffer ruleset for the cryonighter coding standard
License MIT
Homepage https://github.com/cryonighter/cryonighter-coding-standard
Informations about the package cryonighter-coding-standard
Cryonighter PHP CodeSniffer Coding Standard
A coding standard to check against the cryonighter coding standards, originally shamelessly copied from the -disappeared- opensky/Symfony2-coding-standard repository.
Installation via Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer global require cryonighter/cryonighter-coding-standard
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths ../../../vendor/escapestudios/symfony2-coding-standard,../../../vendor/cryonighter/cryonighter-coding-standard
-
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Installation Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repositories
git clone git://github.com/djoos/Symfony2-coding-standard.git symfony2-coding-standard && git clone [email protected]:cryonighter/cryonighter-coding-standard.git
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths /path/to/symfony2-coding-standard,/path/to/cryonighter-coding-standard
Or move/copy/symlink repositories
Symfony
andCryonighter
folders inside the phpcsStandards
directory -
Check the installed coding standards for "Symfony" and "Cryonighter"
phpcs -i
Usage
Via command line
phpcs --standard=Cryonighter --extensions=php --ignore=/path/to/exclude-code /path/to/code
PHP Code Sniffer Wiki: usage, advanced usage
All versions of cryonighter-coding-standard with dependencies
escapestudios/symfony2-coding-standard Version ^3.5.2