There are 3 general ways to use phpcs (from PHP_CodeSniffer):
1) if downloaded .phar file, then run php phpcs.phar (phpcs.phar.bat)
2) if used PEAR, then it avialable from command line with phpcs command (phpcs.bat)
3) if installed from Composer, run PHP_CodeSniffer from the vendor bin directory (phpcs-composer.bat)
Added
phpcs
.There are 3 general ways to use phpcs (from PHP_CodeSniffer): 1) if downloaded
.phar
file, then runphp phpcs.phar
(phpcs.phar.bat
) 2) if used PEAR, then it avialable from command line withphpcs
command (phpcs.bat
) 3) if installed from Composer, run PHP_CodeSniffer from the vendor bin directory (phpcs-composer.bat
)