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

webproject-xyz/php-cs-fixer-config

A shared PHP-CS-Fixer configuration from webproject-xyz that gives PHP projects a consistent, opinionated coding style out of the box. Install it via Composer and extend the preset in your .php-cs-fixer config to enforce uniform formatting and rules across your codebase.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for code-style governance: this package is a pre-built php-cs-fixer ruleset. The build alternative is maintaining your own config (rules, exclusions, version churn). Buying here means a one-line dev dependency and no ruleset ownership — the decision to make is whether upstream's opinions match your team's, not whether the tool is worth writing.
  • Standardization across repos: adoption is a portfolio-level decision, not a per-project one. If you standardize, it belongs in the repo template / skeleton and every Laravel service inherits it. Splitting adoption (some repos on the preset, some on ad-hoc configs) produces the exact review friction the tool is meant to remove.
  • CI gate vs. advisory: the real choice is enforcement. Running the fixer in --dry-run mode as a required pipeline check is what converts a style preference into a non-negotiable. Advisory-only adoption is close to no adoption.
  • Developer-experience roadmap slot: low-effort, high-visibility DX win. Good candidate for a "quality of life" workstream that ships in a single PR per repo rather than a dedicated initiative.
  • PHP version roadmap coupling: release 1.1.3 bumped both dependencies and the PHP constraint. This is a patch-level maintenance release, not a breaking change, but it does mean the preset tracks upstream PHP versions. If any service is pinned to an older PHP runtime, verify the constraint before rolling out — this is the one place where a routine dependency bump can silently fail CI.
  • Not a product differentiator. Nothing here affects features, performance, or customers. It should be scoped and resourced as internal tooling, and should not compete for roadmap capacity with customer-facing work.
  • Explicit non-decision: because the preset is a config file, the exit cost is near zero — you can fork or vendor the ruleset at any time. That lowers the stakes of trying it and argues against spending a committee cycle on the choice.

When to Consider This Package

Consider it when:

  • You maintain multiple Laravel/PHP repositories and style differences between them create review noise, merge conflicts in reformatting PRs, or inconsistent onboarding.
  • You have no style standard at all, or one that lives in tribal knowledge / an outdated phpcs.xml.
  • You want automatable enforcement — a rule set that runs in CI and in pre-commit hooks with no bespoke maintenance.
  • Your team is small enough that nobody owns tooling and you'd rather inherit opinions than author them.
  • You are on, or moving to, a recent PHP version consistent with the package's current constraint.

Look elsewhere or write your own when:

  • You already have a working, enforced ruleset. Migrating yields churn and reformatting diffs across every file for marginal gain.
  • Your organization has strong, divergent style opinions (PSR-12 strictness, framework-specific conventions, legacy code you cannot reformat). A preset you must constantly override is worse than a small config you own.
  • You run mixed PHP versions across services and cannot satisfy the upstream constraint uniformly — you'd be maintaining per-repo pins, which erases the standardization benefit.
  • You need PHPCS/Slevomat, Pint, or Laravel-native tooling for ecosystem or framework reasons; adding a second style tool creates conflicting autoformatters.
  • Vendor-risk tolerance is low and the package's maintainer/activity profile doesn't meet your dependency policy. (Mitigation: the config is trivially forkable, so this is a soft objection.)

Adoption criteria to check before committing: license compatibility, CI runtime cost, behavior on legacy directories, and whether the ruleset's PHP constraint matches your lowest-supported runtime.

How to Pitch It (Stakeholders)

To executives (one paragraph): This is a small, low-cost developer-productivity tool. It standardizes PHP code formatting across our repositories automatically, which removes a recurring source of code-review debate and reduces the friction of moving engineers between projects. There is no customer-facing impact and no meaningful lock-in — the configuration can be copied or replaced at any time. Cost is a dev dependency plus roughly a day of rollout; the return is fewer nitpicking review comments and faster onboarding. Recommend adopting it as internal tooling, not as a roadmap item.

To engineering: This is a shared php-cs-fixer ruleset. We add it as a dev dependency, wire it into CI as a required --dry-run check plus a pre-commit hook, and reformat once per repo. Version 1.1.3 is a routine maintenance release — dependency bumps and a PHP constraint update, no rule changes, no breaking changes — so it requires no action beyond confirming our runtime satisfies the new constraint. We do not need to own the rules; if upstream drifts from what we want, we fork the single config file. Ask: one owner per repo, one reformatting PR, enforcement turned on at merge.

Risk framing: negligible and reversible. The main watch item is the PHP version constraint moving forward on patch releases, which we handle by pinning the package version in services on older runtimes and reviewing bump PRs like any other dependency.

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings