Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Cs Fixer Config Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Code style standardization: Supports a decision to enforce a consistent PHP formatting baseline through php-cs-fixer, reducing style-related PR comments and review noise.
  • Build vs. buy for tooling: This is effectively a tiny, opinionated rules array. “Buy” saves little effort versus maintaining a small internal config, especially given 0 stars, 0 dependents, disabled issues, no license, and minimal documentation. Treat it as a borrow/pilot candidate, not a strategic dependency.
  • Laravel tooling strategy: Laravel teams should compare this against Laravel Pint, which is first-party, Laravel-oriented, and maintained. This package is generic PHP-CS-Fixer configuration and does not document Laravel-specific handling.
  • Pilot/rollout decision: Suitable for a time-boxed pilot in one repository: pin the version, run --dry-run, measure diff size, CI impact, and review-comment reduction before considering broader adoption.
  • Risk and ownership decisions: Adoption creates an internal support obligation. A PM should require an owner, pinned version, documented override process, and fallback to Pint/custom rules.
  • Technical debt hygiene: Could reduce formatting debates, but only if the team accepts the package’s opinions and risky rules. It should not enter the product roadmap as a feature; at most it is optional developer tooling.

When to Consider This Package

Consider it if:

  • Your team already uses php-cs-fixer v3.11+ and wants a ready-made opinionated ruleset rather than curating one from scratch.
  • You are willing to enable setRiskyAllowed(true) and validate the resulting diff carefully.
  • The repository is small or low-risk enough for a pilot, and you can pin the package version.
  • You need a quick reference for modern rules such as ordered_imports, array_indentation, trailing commas, and nullable type declarations.
  • Legal/compliance has reviewed the absence of an explicit license and accepts the risk, or you plan to fork/vendor the rules internally.

Look elsewhere if:

  • You are standardizing a Laravel codebase. Prefer Laravel Pint or a custom Pint/PHP-CS-Fixer config with Laravel-aware review.
  • You need an explicit license, support responsiveness, issue tracking, security posture, or broad community adoption. This package has weak adoption signals and GitHub issues disabled.
  • You need Laravel-specific rules or exceptions for facades, Blade templates, dynamic properties, or legacy patterns. The package does not document those concerns.
  • You require predictable upgrades across future php-cs-fixer major versions.
  • Your team cannot tolerate risky rules or does not have CI capacity to review formatting diffs.

How to Pitch It (Stakeholders)

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.”

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo