Composer
composer require ngearing/phpcs-wp:dev-master
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-