Pros:
src/EntityListener handling).Cons:
final keyword handling in EntityListener) may not apply to vanilla Laravel projects.composer require and config file import. No Laravel-specific dependencies.ecs check --dry-run to preview violations before enforcing.ecs.php/phpstan.neon if needed.tests/ or src/ subsets before full project enforcement.ecs --parallel) be enabled?ecs check --dry-run.tests/ or a single module) to test integration.ecs.php/phpstan.neon to include all relevant paths (src/, config/, etc.).ecs.php with project-specific fixers (e.g., services->set(MyCustomFixer::class)).src/, lenient for tests/).skip or exclude to bypass specific rules.level: max to level: 8 if the project isn’t ready for strict analysis.symplify/ecs) and PHPStan to compatible versions.composer self-update).composer require --dev bitbag/coding-standard bitbag/bitbag-bible # Optional: for reference
ecs.php with BitBag’s import.phpstan.neon includes (handle conflicts manually)../vendor/bin/ecs check src --dry-run..github/workflows/lint.yml:
- name: Run ECS
run: ./vendor/bin/ecs check src --fix
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse src --level=8
composer.json to avoid surprises:
"require-dev": {
"bitbag/coding-standard": "^3.0",
"symplify/easy-coding-standard": "^8.3",
"phpstan/phpstan": "^1.10"
}
ecs.php.@param tags)../vendor/bin/ecs check src).ecs check --debug for unclear violations.phpstan.neon for misconfigured paths/levels.--parallel flag or split paths (e.g., src/, tests/).How can I help you explore Laravel packages today?