Collection of commonly used php QA tools.
Included in this package are:
- phpunit/phpunit The PHP Unit Testing framework.
- phploc/phploc A tool for quickly measuring the size of a PHP project.
- phpmd/phpmd PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
- squizlabs/php_codesniffer PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
- sebastian/phpcpd Copy/Paste Detector (CPD) for PHP code.
- sensiolabs/security-checker PHP frontend for security.symfony.com.
- phpstan/phpstan A PHP Static Analysis Tool.
- vimeo/psalm A static analysis tool for PHP.
- phpmetrics/phpmetrics Static analysis tool for PHP.
Global install
composer global require bear/qatools
Local install
composer require --dev bear/qatools
cp vendor/bear/qatools/phpunit.xml.dist phpunit.xml
cp vendor/bear/qatools/phpcs.xml .
cp vendor/bear/qatools/phpmd.xml .
cp vendor/bear/qatools/phpstan.neon .
psalm --init
cp vendor/bear/qatools/.travis.yml .
cp vendor/bear/qatools/.scrutinizer.yml .
phpunit
phpunit
phpcs
phpcs --standard=./phpcs.xml src
phpcs --standard=./phpcs.xml --warning-severity=false src
phpcs --standard=vendor/bear/qatools/phpcs.xml --warning-severity=false src
phpstan
phpstan analyse
psalm
psalm
phploc
phploc src
phpcpd
phpcpd src
phpmetrics
phpmetrics --report-html=build/metrics/ --extensions=php src,composer.json,composer.lock --junit=build/logs/junit.xml