Weave Code
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 ruleset for v3.11+ from MFN. Provides a ready-to-use rule array via Mfn\PhpCsFixer\Config::getRules(); enable setRiskyAllowed(true) in your php-cs-fixer config and apply the rules.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardization of Code Quality: Adopting this package allows the team to enforce a consistent, opinionated coding style across PHP/Laravel projects, reducing review friction and onboarding time for new developers.
  • Developer Experience (DX) Improvements: Automates formatting and style fixes, enabling engineers to focus on logic rather than formatting debates. Aligns with the "shift-left" quality approach by catching issues early in the CI/CD pipeline.
  • Build vs. Buy Decision: A lightweight, no-dependency "buy" solution for code standards (vs. building a custom config or relying on community defaults like PSR-12). Avoids maintenance overhead of a custom config while providing a curated opinion.
  • Scaling Code Reviews: Reduces trivial feedback in PRs (e.g., indentation, spacing) by auto-applying fixes, accelerating merge cycles.
  • Onboarding Efficiency: New hires spend less time learning "team-specific" style rules and more time understanding business logic.
  • Toolchain Alignment: Complements existing Laravel projects by integrating seamlessly with php-cs-fixer (a widely adopted tool in the ecosystem).

When to Consider This Package

  • Adopt if:

    • Your team lacks a standardized PHP/Laravel coding style guide.
    • You prioritize DX and want to minimize formatting-related PR comments.
    • Your project uses php-cs-fixer v3.11+ and you’re open to an opinionated (but flexible) config.
    • You want to avoid maintaining a custom config but still need deviations from PSR-12 defaults.
    • Your team is small-to-medium (0 dependents suggests niche but low-risk adoption).
  • Look elsewhere if:

    • Your team has strong existing style preferences that conflict with this config’s opinions (e.g., strict PSR-12 adherence or custom in-house rules).
    • You need customizable rules beyond what this package offers (e.g., project-specific exceptions).
    • Your project uses older php-cs-fixer versions (<3.11).
    • You require enterprise-grade support (e.g., SLAs, documentation) or auditability (no explicit license).
    • Your team prefers community-driven configs (e.g., friendsofphp/php-cs-fixer) with broader adoption.

How to Pitch It (Stakeholders)

For Executives:

"This package lets us enforce a consistent PHP/Laravel coding standard with minimal effort—no custom tooling, no maintenance overhead. By automating formatting fixes, we’ll reduce busywork in code reviews, speed up onboarding, and improve developer satisfaction. It’s a lightweight, risk-free way to standardize our codebase without reinventing the wheel. The ‘opinionated’ approach actually saves time by eliminating style debates, so we can focus on what matters: shipping high-quality features faster."

For Engineering Teams:

"This is a pre-configured php-cs-fixer setup that aligns with modern Laravel best practices. It handles all the tedious formatting rules for us (e.g., indentation, spacing, naming) so we don’t waste time arguing about style in PRs. Just add it to your project, run it in CI, and boom—consistent codebase. The config is flexible enough to tweak if needed (via PRs), and since it’s just a config (no license hassle), it’s zero-risk to adopt. Let’s cut down on noise in reviews and focus on the code that actually moves the needle."

For Technical Leads:

  • Pros:
    • Zero dependency bloat (just a config).
    • Integrates seamlessly with existing php-cs-fixer workflows.
    • Encourages collaboration via PRs for rule adjustments.
    • Future-proof (supports php-cs-fixer v3.11+).
  • Cons:
    • No license (but trivial to resolve; MIT/BSD would work).
    • Minimal community adoption (but that’s a feature for niche teams).
  • Action Item: "Let’s trial this in [Project X] for 2 sprints. If it reduces PR feedback by 30%+ on style issues, we’ll roll it out to the rest of the codebase."
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope