php artisan, custom scripts, or CI/CD) often rely on task runners, this package integrates seamlessly with Robo, a PHP-based alternative to tools like Make or Gulp.phpcs CLI or packages like laravel-pint), so this package leverages existing tooling without reinventing the wheel.laravel-pint or phpstan)?@parallel) help?php-parallel-lint, deptrac, or PHPCS’s native CLI) that offer better Laravel integration?.phpcs.xml, phpcs.ruleset.xml), reducing duplication for teams already using PHPCS.composer require --dev sweetchuck/robo-phpcs).RoboFile.php..phpcs.xml is compatible with the package’s supported PHPCS version. Test with:
vendor/bin/robo phpcs:run --ruleset=.phpcs.xml src/
@task decorators, dependency injection).app/, config/, or database/ directories correctly.husky or pre-commit).$this->taskPhpcsRun()
->arg('src/')
->run();
- name: Run PHPCS
run: vendor/bin/robo phpcs:run --standard=PSR12 src/
$this->taskExec('vendor/bin/phpstan analyse')
->run();
$this->taskPhpcsRun()->run();
.phpcs.xml stays current.laravel-pint) if the package becomes unsustainable.@parallel)..gitignored files).vendor/ and node_modules/ from scans..phpcs.xml across the team to avoid "works on my machine" issues.--dry-run flag for local previews before CI execution.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Robo version incompatibility | Build pipeline breaks | Fork the package or use PHPCS CLI directly. |
| PHPCS rule violations in CI | Blocked merges | Auto-fix trivial issues (e.g., with phpcbf). |
| Package abandonment | No future updates | Maintain a fork or migrate to alternatives. |
| Slow PHPCS execution | CI timeouts | Parallelize tasks or exclude non-critical paths. |
Misconfigured .phpcs.xml |
False positives/negatives | Enforce PR reviews for ruleset changes. |
vendor/bin/robo phpcs:run).CONTRIBUTING.md.How can I help you explore Laravel packages today?