ngearing/phpcs-wp

php code styling and ruleset for WordPress


License
MIT

Documentation

PHP Code Sniffing for WordPress

Requirements

Composer

Install

composer require ngearing/phpcs-wp:dev-master

How to use

From the root of your project directory run the following from your terminal:

vendor/bin/phpcs .

Or to fix errors

vendor/bin/phpcbf .

To check PHP compatibilty

vendor/bin/phpcs --runtime-set testVersion 7.0-