Analysis
PHPStan
Configuration
phpstan.neon.distparameters:level: 4paths:- src
phpstan.neonincludes:- phpstan.neon.distparameters:editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
.gitignorephpstan.neon
Run analysis
vendor/bin/phpstan
PhpMetrics
Installation
composer require --dev phpmetrics/phpmetrics
Run analysis
vendor/bin/phpmetrics --report-html=phpmetrics --git=$(which git) src