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

mll-lab/php-cs-fixer-config

Shared php-cs-fixer configuration package. Install as a dev dependency and use the config($finder) helper in .php-cs-fixer.php. Optionally enable risky rules via risky($finder), override specific rules, or further customize the returned Config instance.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs Buy: Eliminate the need to build custom PHP code formatting/fixing tools, reducing devops overhead and accelerating onboarding for new developers.
  • Developer Experience: Enhance team consistency in PHP code style by integrating a battle-tested, configurable auto-fixer directly into CI/CD pipelines or local workflows.
  • Maintenance Efficiency: Reduce manual code review cycles for style violations by automating fixes for edge cases (e.g., LineBreakBeforeThrowExpressionFixer), freeing engineers to focus on business logic.
  • Roadmap Alignment: Supports initiatives to improve code quality, reduce technical debt, or enforce stricter standards in legacy PHP/Laravel codebases.

When to Consider This Package

  • Adopt if:
    • Your team maintains a Laravel/PHP codebase and struggles with inconsistent code styling or manual enforcement of PSR standards.
    • You prioritize developer productivity and want to automate repetitive formatting tasks (e.g., throw expressions, imports, braces).
    • Your CI/CD pipeline lacks a dedicated code fixer or relies on ad-hoc scripts (e.g., php-cs-fixer without custom rules).
    • You’re migrating legacy PHP code to modern standards and need granular control over formatting rules.
  • Look elsewhere if:
    • Your stack is primarily non-PHP (e.g., Node.js, Python) or uses a different auto-formatter (e.g., Prettier, Black).
    • You require breaking changes in formatting (this package focuses on incremental fixes).
    • Your team lacks PHP expertise to configure or maintain custom rules (though the package is designed to be low-friction).

How to Pitch It (Stakeholders)

For Executives: "This package lets us enforce consistent PHP code quality automatically, cutting down on manual reviews and developer friction. For example, the new LineBreakBeforeThrowExpressionFixer ensures our error-handling code follows best practices without extra effort—saving time and reducing bugs. It’s a low-cost way to future-proof our codebase as we scale."

For Engineering: "We can now integrate a Swiss-army-knife for PHP formatting into our workflow with minimal setup. The new rule for throw expressions is a great example of how it handles niche cases we’d otherwise debate in PRs. It plays nicely with Laravel’s ecosystem and can run in CI or locally. Let’s pilot it on [Module X] to see how much time it saves on style nitpicks."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4