vendor/bin CLI tools, composer dependencies) without requiring architectural changes.phpstan/phpstan under the hood), making it lightweight yet powerful for detecting deprecated patterns, anti-patterns, and best-practice violations in Filament-specific code.filacheck.php) and Pro version for advanced use cases, allowing gradual adoption.composer require and zero Laravel service provider/configuration. Works out-of-the-box with Filament’s default directory structure (app/Filament).--dirty equivalent) and GitHub Actions, with exit codes (0/1) for pipeline integration.| Risk Area | Mitigation Strategy |
|---|---|
| False Positives | Rules are Filament-specific and tested against real-world projects. Configurable via filacheck.php. |
| Performance Overhead | Optimized for incremental scans (--dirty flag) and parallel rule execution. Lightweight compared to full PHPStan runs. |
| Auto-Fix Reliability | Beta feature; dry-run (--dry-run) and backup (--backup) flags mitigate risks. Always commit before --fix. |
| Rule Gaps | Pro version covers performance/security/UX, but free tier addresses critical deprecations. Monitor for updates. |
| Dependency Conflicts | Uses PHP 8.1+ and modern Laravel packages (e.g., symfony/console). Tested with Filament v4/v5. |
--fix) or prefer manual review?reactive() → live()) are critical for the project’s Filament version?too-many-columns) be adopted later for performance tuning?vendor/bin).Laravel → Filament → FilaCheck (Static Analysis)
↑ ↑
Composer PHP AST
Pilot Phase (Low Risk):
composer require laraveldaily/filacheck --dev
vendor/bin/filacheck --detailed
config/filacheck.php if needed.CI Integration (Medium Risk):
1 ignored).deprecated-reactive).Auto-Fix Adoption (High Risk):
--dry-run to preview fixes before enabling --fix.Resources/).Pro Version (Optional):
| Component | Compatibility Status | Notes |
|---|---|---|
| Filament v4/v5 | ✅ Full support | Rules are version-specific. |
| Laravel 9/10 | ✅ Supported | PHP 8.1+ required. |
| Windows/Linux | ✅ Tested | Path resolution fixed in v0.3.1. |
| Git Hooks | ✅ Compatible | Use --dirty for pre-commit checks. |
| Docker | ✅ Works | No special configuration needed. |
| PHPStan | ⚠️ Parallel use possible | Overlap in some rules; configure to avoid redundancy. |
Phase 1: Audit (2–4 weeks)
deprecated-reactive).Phase 2: CI Enforcement (1–2 weeks)
filacheck.php.Phase 3: Auto-Fix (Ongoing)
--fix for low-risk rules (e.g., action-in-bulk-action-group).--backup for critical files.Phase 4: Pro Expansion (Future)
filacheck.php should be version-controlled.composer update laraveldaily/filacheck.--dry-run to debug.reactive() → live()).--dirty reduces scan time.vendor/bin/filacheck app/Filament/Resources).--detailed, review output).filacheck packages/*/Filament).--dirty to limit scope.| Scenario | Impact | Mitigation |
|---|---|---|
| CI Blockage | Build failures on deprecated code | Start non-blocking; phase in rules. |
| Auto-Fix Regressions | Broken functionality | Use --backup; review changes. |
| Rule Inaccuracy | False positives/negatives | Disable |
How can I help you explore Laravel packages today?