thanpa / thanpa-coding-standard
CodeSniffer ruleset for the Thanpa coding standard
Installs: 413
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:coding-standard
Requires
- php: >=5.4.0
- squizlabs/php_codesniffer: ~2.0
This package is auto-updated.
Last update: 2024-09-09 01:36:12 UTC
README
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