phpstan/phpstan-symfony suggests partial awareness of Laravel’s ecosystem, but no documentation confirms coverage of Laravel’s core components..php-cs-fixer.dist.php, phpstan.neon) allows for incremental adoption and customization. Existing Laravel projects using these tools individually would face minimal disruption, but conflicts may arise if overlapping configurations exist (e.g., custom PHPStan rules vs. Rollerscapes’ defaults).phpunit.xml and phpstan.neon may require manual merging to avoid conflicts.phpunit.xml and phpstan.neon can be merged without conflicts, but explicit guidance is lacking.jobs:
standards:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: composer require rollerscapes/standards --dev
- run: vendor/bin/php-cs-fixer fix --dry-run --diff
- run: vendor/bin/phpstan analyse --level=max --error-format=github
Key: The --diff flag for PHP-CS-Fixer and --error-format=github for PHPStan improve debuggability in CI.standards:check, standards:fix, standards:analyze) provide a Laravel-native way to run checks, reducing friction for developers already familiar with Laravel’s CLI.phpstan-symfony covers Laravel’s core components (e.g., Illuminate\Contracts, Illuminate\Support\Facades).ignoreErrors or excludePaths).phpstan --generate-baseline to temporarily ignore known issues while fixing others.phpstan/phpstan-doctrine and phpstan/phpstan-symfony are necessary for the project.@mixin, @inject)? If not, how will we customize PHPStan to avoid false positives?laravel/phpstan package? Should we merge configurations or replace one with the other?phpstan --generate-baseline or exclude specific paths?level=max in a large Laravel monolith? Can we cache results (e.g., via phpstan --generate-baseline) to reduce CI/CD noise?--parallel) for faster execution?phpunit.xml or phpstan.neon? Are there known conflicts with laravel/pint or laravel/phpstan?composer require --dev rollerscapes/standards
Note: The --dev flag ensures the package is only installed in development, aligning with Laravel’s conventions.laravel/phpstan with additional rules (Doctrine, Symfony). Critical: Verify if this duplicates or conflicts with existing Laravel PHPStan configs.phpunit.xml if not merged carefully.composer require rollerscapes/standards --dev
vendor/bin/php-cs-fixer fix --dry-run --diff
vendor/bin/phpstan analyse --level=5 --error-format=github
{
"hooks": {
"pre-commit": "vendor/bin/php-cs-fixer fix --dry-run"
}
}
5 → 7 → max) while fixing errors. Use phpstan --generate-baseline to temporarily ignore known issues.phpunit.xml overrides). Merge with Laravel’s default config:
<phpunit>
<extensions>
<extension class="Rollerscapes\Standards\PHPUnit\InternalTestExtension"/>
</extensions>
</phpunit>
.php-cs-fixer.dist.php. Prioritize project-specific rules over Rollerscapes’ defaults:
return (new PhpCsFixer\Config())
->setRules(Rollerscapes\Standards\Config::
How can I help you explore Laravel packages today?