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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky