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

palmtree/php-cs-fixer-config

Shared PHP CS Fixer configuration for Palmtree projects, providing an opinionated ruleset for consistent, modern PHP code style. Install via Composer and extend the base config to enforce project-wide formatting standards with minimal setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardizing the "paved road" for PHP delivery. This package is a versioned, shareable PHP CS Fixer ruleset — infrastructure, not a feature. Its product value is that it turns "what does good PHP look like here?" from a recurring debate into a single dependency bump.
  • Build vs. buy vs. borrow on engineering standards. Most teams either hand-roll a .php-cs-fixer.dist.php, copy one from a blog post, or adopt a framework preset (Laravel Pint, Symfony rulesets, PSR-12 via PHP_CodeSniffer). A maintained config package is a fourth option: borrow someone's opinionated baseline and fork the moment it stops fitting. That is a legitimate decision input even at zero stars.
  • Reducing review friction as a measurable product-ops lever. Consistent formatting removes a whole class of PR comments and CI churn. This is one of the cheapest levers available for improving cycle time and onboarding speed — worth deciding on explicitly rather than letting it accrete by convention.
  • Enabling safe multi-repo/multi-package consistency. If the org ships several PHP libraries or a monorepo of components, a shared ruleset is a prerequisite for later investments: automated codemods, large-scale refactors, cross-package CI gates, and consistent static-analysis baselines. Adopting it now is partly a bet on that future.
  • Scoping a "quality gate" roadmap item. Whether style enforcement is advisory (warn-only) or blocking (CI-fails) is a product decision with real throughput tradeoffs. A pinned ruleset version is what makes that decision reversible and auditable.
  • Vendor and dependency-risk review. With 0 stars, 0 dependents, and a single maintainer, this should be assessed as source you adopt, not a vendor you depend on. That framing changes the decision: the question isn't "is it popular?" but "is it small enough to own if it's abandoned?"

When to Consider This Package

Consider it when:

  • Your stack is already PHP CS Fixer (not Pint, not PHP_CodeSniffer). This package is a config layer; it's worthless without the underlying tool.
  • You maintain multiple PHP packages or components that should share one style, and you want that style expressed in one place with a version number you can pin.
  • Your team is small enough that a bespoke ruleset is a distraction — you'd rather inherit opinions than debate them.
  • You want an explicit, reviewable artifact for style decisions, so changes to standards show up as a dependency diff rather than a silent edit to a config file.
  • You are comfortable treating it as a fork-on-sight dependency: MIT licensed, trivially small, and forkable in an afternoon if upstream goes quiet.

Look elsewhere when:

  • You're on a single PHP application. A local .php-cs-fixer.dist.php (or Laravel Pint's zero-config default) gets you 95% of the value with none of the dependency surface.
  • You need broad community validation, security review depth, or vendor support. Zero stars and zero dependents means no external stress-testing; treat the ruleset as unvetted opinion, not vetted best practice.
  • You're standardized on Laravel Pint, PHP_CodeSniffer, or a framework-blessed ruleset — mixing ecosystems creates two competing sources of truth.
  • You need rules tailored to specific frameworks or domains (Laravel, Symfony, Drupal, WordPress). A generic component ruleset may under- or over-constrain you.
  • You have a large team with strong existing conventions. Migration cost will exceed the benefit, and the ruleset's opinion may conflict with hard-won local practice.

Adoption guardrails regardless: pin the exact version, commit a lockfile, document the override path in-repo, and assign a named owner. Budget one engineer-half-day per year to track upstream or take the fork.

How to Pitch It (Stakeholders)

To executives (one paragraph): This is a small, free, MIT-licensed configuration package that standardizes how our PHP code is formatted. It isn't a product feature — it's low-cost engineering hygiene that reduces code review back-and-forth, speeds up onboarding, and makes our quality gates consistent across services. The risk profile is unusually favorable: it's a thin config file, not a runtime dependency, so it never ships to customers, cannot break production, and can be replaced or forked internally in under a day if it's ever abandoned. The main caveat to acknowledge is that it has no external adoption — so we should treat it as an internal standard we own, not a third-party product we trust. Recommendation: pilot it on one or two repositories, measure review cycle time and onboarding friction, then decide on org-wide rollout.

To engineering (the actual ask): We're proposing a shared PHP CS Fixer ruleset as a single pinned dev dependency. Benefits are concrete: one source of truth for style, changes to standards surface as reviewable diffs, and CI enforcement becomes a one-line config change rather than a per-repo argument. Two honest caveats. First, the package has zero stars and zero dependents — it's unvetted, so we should read the ruleset before adopting it and be prepared to fork it; the license permits that and the surface area is tiny. Second, if you're already on Pint or have a well-loved local config, the case for switching is weak — say so and we'll drop it. If we proceed, we pin the version, name an owner, and treat blocking-vs-advisory CI enforcement as a separate, reversible decision.

The measurable bet: fewer style-related PR comments, shorter time-to-first-merged-PR for new hires, and a consistent CI gate across repos. If those numbers don't move in a quarter, we drop the dependency at near-zero cost.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console