Download the PHP package thanpa/thanpa-coding-standard without Composer
On this page you can find all versions of the php package thanpa/thanpa-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thanpa/thanpa-coding-standard
More information about thanpa/thanpa-coding-standard
Files in thanpa/thanpa-coding-standard
Package thanpa-coding-standard
Short Description CodeSniffer ruleset for the Thanpa coding standard
License MIT
Homepage https://github.com/thanpa/thanpa-coding-standard
Informations about the package thanpa-coding-standard
Thanpa PHP CodeSniffer Coding Standard
A coding standard to check against the Thanpa coding standard.
Installation
Composer
This standard can be installed with the Composer dependency manager.
-
Install the coding standard as a dependency of your project
composer require --dev thanpa/thanpa-coding-standard:~1.0
-
Add the coding standard to the PHP_CodeSniffer install path
bin/phpcs --config-set installed_paths vendor/thanpa/thanpa-coding-standard
-
Check the installed coding standard for "Thanpa"
bin/phpcs -i
-
Done!
bin/phpcs /path/to/code
Stand-alone
-
Install PHP_CodeSniffer
-
Checkout this repository
git clone git://github.com/thanpa/thanpa-coding-standard.git thanpa/thanpa-coding-standard
-
Add the coding standard to the PHP_CodeSniffer install path
phpcs --config-set installed_paths thanpa/thanpa-coding-standard
Or copy/symlink this repository's "Thanpa"-folder inside the phpcs
Standards
directory -
Check the installed coding standard for "Thanpa"
phpcs -i
-
Done!
phpcs /path/to/code