Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

bear/qatools

Collection of commonly used php QA tools.

Included in this package are:

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

Security

security-checker

security-checker security:check

CI build

phpbuild
You can’t perform that action at this time.