dosfarma/coding-standard
Opinionated PHP/Laravel coding standard and tooling preset for DosFarma projects. Includes rules and configuration for consistent formatting and static analysis across repositories, helping keep code style unified in CI and local development.
squizlabs/php_codesniffer) as a dependency. No Laravel-specific dependencies, reducing risk.with() or where()).php-cs-fixer or custom hooks.return type rules vs. PSR-12).collect($model)->...), it may require rule exceptions.blade.php tooling.| Phase | Action |
|---|---|
| Discovery | Audit existing codebase for violations. |
| Alignment | Adjust standard or create overrides for Laravel-specific cases. |
| CI Gating | Fail builds on critical violations (e.g., error-level rules). |
| Developer Onboarding | Train team on new rules via docs/examples. |
php-cs-fixer cache).| Risk | Mitigation Strategy |
|---|---|
| Overly Strict Rules | Start with warning-level violations only. |
| CI Bottlenecks | Limit PHPCS to changed files (e.g., git diff). |
| Rule Conflicts | Create a phpcs.xml override file. |
| Toolchain Breakage | Test with a staging environment mirror. |
How can I help you explore Laravel packages today?