drupol/phpcsfixer-configs-php
Ready-made PHP-CS-Fixer config objects for common standards and PHP versions (PSR-12, PHP 5.6–7.3). Implements ConfigInterface and supports combining rules via withRulesFrom() for easy reuse across projects.
PSR12 or PHP version-specific configs (e.g., Php82 for Laravel 10+).Php56 or Php7 configs to incrementally modernize codebases.withRulesFrom() for project-specific needs (e.g., Laravel’s return type hints).Adopt When:
Look Elsewhere If:
"This package lets us enforce consistent PHP code quality across our Laravel projects with zero manual effort. By adopting pre-configured PHP-CS-Fixer rules (PSR12, PHP 5.6–8.2), we’ll reduce bugs from style inconsistencies, speed up onboarding for new devs, and automate code reviews in CI/CD. It’s a low-risk, high-reward way to standardize our codebase—saving engineering time while improving maintainability. The cost? Just a one-line Composer install in dev dependencies."
"This gives us drop-in PHP-CS-Fixer configs for Laravel projects, so we don’t waste time tweaking rules. Need PSR12 compliance? Use PSR12. Migrating legacy PHP 5.6 code? Use Php56. The configs are battle-tested (used in Drupal 11) and extendable—just call withRulesFrom() to override defaults. It integrates seamlessly with our CI (e.g., fail builds on style violations) and works with Laravel’s ecosystem. Let’s standardize our codebase without reinventing the wheel."
"No more arguing about tabs vs. spaces or brace styles—this package gives us ready-to-use PHP-CS-Fixer configs for Laravel. Just install it (composer require --dev drupol/phpcsfixer-configs-php), pick a preset (PSR12, Php82), and run php-cs-fixer fix. It’s lightweight, well-documented, and even includes tests. Perfect for keeping our code clean without the hassle."
How can I help you explore Laravel packages today?