thanpa / thanpa-coding-standard
CodeSniffer ruleset for the Thanpa coding standard
Installs: 415
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:coding-standard
pkg:composer/thanpa/thanpa-coding-standard
Requires
- php: >=5.4.0
- squizlabs/php_codesniffer: ~2.0
This package is auto-updated.
Last update: 2025-10-09 04:21:40 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-standardOr copy/symlink this repository's "Thanpa"-folder inside the phpcs
Standardsdirectory -
Check the installed coding standard for "Thanpa"
phpcs -i -
Done!
phpcs /path/to/code