use phpcs with composer on a project code example Example: phpcs composer global require "squizlabs/php_codesniffer=*"