sweetchuck/robo-phpstan
Robo tasks for running PHPStan in your PHP projects. Provides configurable commands and integration helpers to execute static analysis as part of Robo workflows and CI pipelines, with options for paths, config files, and reporting.
php artisan), enabling seamless integration into existing build pipelines (e.g., Git hooks, CI/CD).phpstan/extension-installer or standalone). This package abstracts repetitive PHPStan command execution, reducing boilerplate.robo/robo and phpstan/phpstan, both widely adopted in PHP ecosystems..phpstan.neon) remains the single source of truth; this package merely wraps execution logic.phpstan:analyze) and can be tested in isolation.robo phpstan:analyze)?robo test)?robo deploy, robo test).robo commands).composer exec phpstan analyze).sweetchuck/robo-phpstan to composer.json dev dependencies.robo.phar or Robofile.php.// Robofile.php
$tasks->task('phpstan:analyze', \Sweetchuck\RoboPhpStan\Tasks\AnalyzeTask::class);
composer exec phpstan with ./vendor/bin/robo phpstan:analyze..neon file remains unchanged; tasks inherit its settings..phpstan.neon).Robofile.php or a dedicated config file.phpstan:analyze (run analysis)phpstan:check (exit on errors)phpstan:parallel (parallel analysis)./vendor/bin/robo phpstan:analyze.robo phpstan:check --level=5).sweetchuck/robo-phpstan for updates (though low activity suggests stability)..neon paths (validate with phpstan:analyze --help).storage/ or bootstrap/cache/ writable).composer exec phpstan analyze).| Failure Type | Impact | Mitigation |
|---|---|---|
| PHPStan config errors | False positives/negatives | Validate .phpstan.neon with phpstan diagnose. |
| Robo task syntax errors | Broken workflows | Use --dry-run flag to test tasks. |
| CI pipeline failures | Blocked merges | Start with advisory checks, then enforce. |
| Dependency conflicts | Broken builds | Pin versions in composer.json. |
| Performance bottlenecks | Slow local/dev CI | Cache results or use parallel analysis. |
robo phpstan:check).CONTRIBUTING.md section with Robo/PHPStan task examples.How can I help you explore Laravel packages today?