bear / qatools
PHP QA Tools
Installs: 109 909
Dependents: 7
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 5
Open Issues: 1
Requires
- php: ^7.4 || ^8.0
- doctrine/coding-standard: ^9 || ^10.0 || ^11.0 || ^12.0
- friendsofphp/php-cs-fixer: ^3.4
- phploc/phploc: ^7.0
- phpmd/phpmd: ^2.11
- phpmetrics/phpmetrics: ^2.7
- phpstan/phpstan: ^1.3
- phpunit/phpunit: ^9.6 || ^10.5 || ^11.3
- psalm/plugin-phpunit: ^0.16 || ^0.19
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^4.2 || ^5.25
- dev-master
- 1.11.0
- 1.10.0
- 1.9.12
- 1.9.11
- 1.9.10
- 1.9.9
- 1.9.8
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- dev-dependabot/composer/phpstan/phpstan-tw-2.0
This package is auto-updated.
Last update: 2024-11-18 03:58:48 UTC
README
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.
Installation
Global install
composer global require bear/qatools
Local install
composer require --dev bear/qatools
QA Configs
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
CI Configs
cp vendor/bear/qatools/.travis.yml .
cp vendor/bear/qatools/.scrutinizer.yml .
Usage
Test and CS
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
Code Quality
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