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 Shim Laravel Package

irstea/php-cs-fixer-shim

A compatibility shim for php-cs-fixer that provides a stable entry point for PHP coding-style checks and fixes, helping projects avoid dependency and version conflicts while keeping formatting tooling consistent.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Standardizing code style across a PHP/Laravel portfolio. The underlying tool (friendsofphp/php-cs-fixer) is the mature, widely adopted fixer for PSR-12 and framework conventions. Adopting it as a CI gate and pre-commit hook turns style debates into automated, non-blocking fixes — a measurable reduction in review friction and onboarding time.
  • Build vs. buy vs. wrap. This package is a shim, not a fixer: it exists to re-publish or constrain an upstream dependency for Composer. The PM decision it informs is whether to (a) require the upstream package directly, (b) adopt Laravel Pint as a first-party wrapper, or (c) maintain an internal shim for control. The shim only wins on option (c), and only if you have a named owner.
  • Roadmap sequencing for code-health work. Adopting a fixer is a low-cost, high-signal first step before larger investments (static analysis, test coverage, CI hardening). It produces visible wins quickly and normalizes the idea of automated quality gates for the team.
  • Release and dependency governance. A shim is often a response to supply-chain or reproducibility requirements: pinned versions, vetted mirrors, restricted network egress, or patched forks. That makes it a lever for procurement/security policy as much as for engineering.
  • Use cases where it fits: legacy codebase normalization before a rewrite, enforcing style in a monorepo with mixed Laravel/Symfony packages, gating PRs in CI, and reducing diff noise during refactors.

When to Consider This Package

Adopt only if at least one of these is true:

  • Your CI or developer environments cannot reach Packagist/composer mirrors directly, and you need an internal, vetted distribution path.
  • You must pin, patch, or hold back an upstream version of php-cs-fixer (e.g., a PHP-version compatibility constraint your platform requires).
  • You need to resolve a Composer conflict via replace/alias semantics across a dependency graph you don't control.
  • An internal policy mandates mirrored or audited third-party dependencies.

Look elsewhere if:

  • You are starting a Laravel application or a typical Laravel package — Laravel Pint is first-party, zero-config, built on PHP-CS-Fixer, and carries no shim risk.
  • You need analysis beyond formatting — pair with PHPStan or Psalm rather than stretching a fixer's remit.
  • Maintenance capacity is thin. Zero stars, zero dependents, and a private single-org GitLab host mean no community validation, no external bug reports, and a high bus factor. If no one owns the shim, require the upstream package directly and accept the upstream's release cadence.
  • You need a public support contract or security disclosure process — this package will not provide one.

Risk flags to weigh: the package's value is entirely derived from upstream; a shim adds a failure layer between you and fixes, and version drift in the shim can silently pin you to an outdated, potentially vulnerable fixer. Verify the shim tracks upstream releases on a defined cadence before depending on it.

How to Pitch It (Stakeholders)

To executives: This is low-cost internal plumbing, not a product investment. It standardizes PHP formatting across our codebase automatically, which reduces review time, shortens onboarding, and prevents style churn from consuming engineering hours. The underlying formatter is industry-standard and widely used. Our cost is one small internal wrapper that someone must own; the risk is that it is unmaintained and invisible outside our organization, so we should either assign an owner and a quarterly upgrade check, or skip the wrapper and use the upstream package or Laravel's built-in Pint.

To engineering: Treat this as infrastructure, not a library choice. Decide the wrapper question on three facts: (1) do we actually need a mirror, pin, or patch? (2) who is on the hook for tracking upstream releases? (3) what is our fallback if it breaks? Default recommendation for Laravel work is Pint; for non-Laravel or mixed PHP, require php-cs-fixer upstream unless our network or compliance posture forbids it. Measure success by adoption (repos with the check wired into CI), CI pass rate, and the volume of formatting-only review comments — not by stars or dependents on the shim itself.

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.
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator