lookyman/coding-standard
Opinionated PHP coding standard package for your projects. Install via Composer and reference the bundled ruleset.xml in PHP_CodeSniffer to enforce consistent formatting and style, with room to add your own project-specific rules.
php-cs-fixer, pint). However, its lack of Laravel-specific rules (e.g., Blade template standards) reduces utility.laravel-shift/php-console-color).foreach syntax, dynamic properties).php-cs-fixer/pint?php-cs-fixer (e.g., via --ruleset-file)?php-cs-fixer).php artisan coding-standard:check) for CLI access.illuminate.starting to auto-run checks (risky; may slow boot).eloquent.saved or events.artisan.started for real-time feedback (overkill for static analysis).php-cs-fixer --dry-run to identify gaps.php-cs-fixer.# .github/workflows/lint.yml
- name: Legacy Coding Standard
run: vendor/bin/phpcs --standard=lookyman --runtime-set installed_paths ./vendor/lookyman/coding-standard
- name: Modern Standards
run: vendor/bin/php-cs-fixer fix --rules=@PSR12 --dry-run
vendor/laravel-coding-standard to avoid vendor lock-in.Route::controller syntax).pint/php-cs-fixer unless rules are explicitly aligned.rector if it modifies code structure.php-cs-fixer (e.g., via .php-cs-fixer.dist.php).pint + custom ruleset.README explaining its removal.sebastianbergmann tools (e.g., phpunit/phpunit v4.x).=== instead of ==") may confuse teams used to modern PHP.parallel-lint).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PHP 8.x Incompatibility | Builds fail on upgrade | Pin PHP version to 7.4 in CI |
| Rule Misconfiguration | False positives block PRs | Maintain a config/exceptions.json |
| Package Abandonment | Security risks, breakage | Fork and maintain internally |
| CI Flakiness | Intermittent failures | Cache results, retry logic |
.dist.php configs).php-cs-fixer can adapt quickly; others may resist.How can I help you explore Laravel packages today?