mfn/php-cs-fixer-config
Opinionated php-cs-fixer rule set for v3.11 and up, packaged as a simple config class. Requires setRiskyAllowed(true). Just require the autoloader, grab the rules, and pass them to your PhpCsFixer config.
php-cs-fixer, reducing style-related PR comments and review noise.--dry-run, measure diff size, CI impact, and review-comment reduction before considering broader adoption.Consider it if:
php-cs-fixer v3.11+ and wants a ready-made opinionated ruleset rather than curating one from scratch.setRiskyAllowed(true) and validate the resulting diff carefully.ordered_imports, array_indentation, trailing commas, and nullable type declarations.Look elsewhere if:
php-cs-fixer major versions.For executives: “This is a small, dev-only PHP formatting config that could reduce style churn in code review, but it has weak adoption signals, no explicit license, and no issue tracker. It is not a strategic platform dependency. Recommendation: do not adopt org-wide; either skip it in favor of Laravel Pint or run a low-cost pilot in one repo with a pinned version and a clear rollback plan.”
For engineering: “It exposes Mfn\PhpCsFixer\Config::getRules() as a drop-in rules array for php-cs-fixer v3.11+, but it requires setRiskyAllowed(true), has no license, disables issues, and has 0 dependents. Trial it only with a pinned dev dependency, --dry-run baseline, and documented overrides. If it creates noisy diffs or conflicts with Laravel conventions, fall back to Pint or an internal ruleset.”
How can I help you explore Laravel packages today?