beste/php-cs-fixer-config
Shared PHP-CS-Fixer configuration used in BESTE projects, extending ergebnis/php-cs-fixer-config. Provides ready-made rulesets for PHP 8.1 and 8.2 to standardize code style across repositories.
Php81, Php82, laravel, laravel-strict) provide a turnkey solution for enforcing consistent coding standards, aligning with Laravel’s ecosystem while avoiding reinventing the wheel.use statement ordering, Artisan formatting) that align with community expectations.use statements, Blade files), ensuring consistency with framework conventions.Adopt When:
use statement ordering, inconsistent PHPDoc alignment, or Blade template formatting).Look Elsewhere If:
php-cs-fixer installs or custom scripts).friendsofphp/php-cs-fixer with its presets or laravel-shift/php-cs-fixer-config if adoption risk is a concern).use statements (the package’s Laravel-specific presets may add unnecessary overhead).Executives:
"This package cuts 30–50% of the time our engineers spend arguing about code formatting in PRs. By standardizing PHP-CS-Fixer rules across all Laravel projects with a single Composer dependency, we’ll reduce merge conflicts, accelerate onboarding, and future-proof our stack for PHP 8.4+. It’s a one-time setup that scales with our team—no ongoing maintenance costs, just consistent quality. For a team of 10+ developers, this could save ~20 hours/month in manual reviews, freeing up time for higher-impact work. The MIT license and Laravel-specific presets ensure we’re not reinventing the wheel, while the CI integration will automate quality gates and reduce technical debt."
Engineering (Devs):
"Install it once, use it everywhere. Drop this into your
composer.json, configure it in 5 minutes, and forget about style debates. The presets handle Laravel-specific edge cases (like Artisan commands, Blade files, or dynamicusestatements), and updates propagate automatically. Pro tip: Add it to your CI pipeline to block non-compliant PRs—your future self (and teammates) will thank you. Need to tweak a rule? Override it locally without duplicating the whole config. Bonus: It’s based on the provenergebnis/php-cs-fixer-config, so you’re not betting on a niche package."
Tech Leads/Architects:
"This aligns with our modular Laravel architecture by providing a shared dependency for code quality. The presets (
Php81,Php82,laravel,laravel-strict) ensure consistency across microservices while letting teams override rules per project. Key benefit: If we update PHP-CS-Fixer or Laravel syntax, we only need to update one package—not every repo. Risk mitigation: The package is MIT-licensed, well-documented, and extends a battle-tested base. Validation needed: Test thelaravel-strictpreset against our largest codebase to ensure no false positives in CI. Long-term: This could become a mandatory dependency for new Laravel projects in our org."
Product Managers:
"This reduces developer friction in our Laravel-based products by eliminating style-related blockers. For example, in our multi-tenant SaaS, where 8 engineers contribute to shared libraries, this will cut PR review time by 25% and improve onboarding for new hires. The CI integration also aligns with our quality gates for feature releases, ensuring we don’t ship formatting debt. Trade-off: The
laravel-strictpreset might initially feel restrictive, but the long-term gains in consistency and velocity outweigh the short-term adjustments."
How can I help you explore Laravel packages today?