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

Shift Php Cs Laravel Package

eduarguz/shift-php-cs

eduarguz/shift-php-cs is a PHP coding standards package that helps you detect and fix style issues in your codebase. It provides a simple way to enforce consistent formatting, keeping projects clean and readable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy vs. copy. This package is not a library in any meaningful sense — it is a published PHP-CS-Fixer ruleset reflecting Laravel Shift's house style. The real decision it informs is whether style standards should be an owned config file, a third-party dependency, or a first-party tool. For most teams the answer is "copy the ruleset, own the file."
  • Engineering quality-gate roadmap. Whether to add automated style enforcement to CI, pre-commit hooks, or a composer fix script. The package is a shortcut to a defensible default ruleset if you have no opinion yet and want to stop debating tabs vs. spaces.
  • Onboarding and review-cost reduction. A canonical style config reduces nitpicking in code review and shortens ramp-up for new engineers. If review time or "style-only" PR comments are a tracked pain point, this is a low-effort lever — though Pint now delivers the same benefit with a maintained dependency.
  • Standardization across a multi-repo estate. If you have several small Laravel services and no shared tooling repo, a single pinned ruleset is a legitimate way to get consistency cheaply. The package format (a Composer dependency) makes distribution trivial, which is its only real structural advantage over copying a file.
  • Deprecation / modernization planning. With a last release of 2021-12-07 and 11 stars, this is a signal input for a "tooling debt" line item: any repo already depending on it needs a migration path to Pint or a vendored config.

When to Consider This Package

Adopt (or rather, evaluate) when:

  • The codebase is Laravel 8-era, PHP 7.4–8.0, and already pinned to PHP-CS-Fixer 3.x in a range compatible with the 2021 ruleset.
  • The team has no existing style guide and wants a credible, opinionated default without a standards debate.
  • You are willing to fork or vendor it — i.e., you treat it as a starting config, not a live dependency.

Look elsewhere when:

  • You are on Laravel 10/11 or PHP 8.2+. The ruleset predates several fixer rule changes and Laravel conventions; expect churn and manual reconciliation.
  • You need a maintained dependency with a security/patch path. A single-maintainer package last released in 2021 is a supply-chain liability in a build pipeline, even for a dev-only dependency.
  • You are on a monorepo or a mixed-framework codebase — the ruleset is Laravel-opinionated.
  • You want zero config. laravel/pint is the first-party, actively maintained answer and is the correct default recommendation; it wraps PHP-CS-Fixer with a curated preset and is already in most Laravel skeletons.
  • You need to control the fixer version tightly, or your org requires an internal approved-dependency list.

Practical read: the value here is the content of the ruleset, not the package. Copy .php-cs-fixer.dist.php into your repo, or just use Pint. Adding this as a Composer dependency buys you a lockfile entry and an abandonment risk in exchange for roughly one file.

How to Pitch It (Stakeholders)

To executives: This is a small developer-productivity tooling question, not a product bet. A style config removes a recurring category of code-review friction and makes codebases look consistent across teams. The specific package is a 2021-era community config with a single maintainer and negligible adoption, so the recommendation is not to depend on it — instead, adopt Laravel's first-party equivalent (Pint) or copy the ruleset into our own repo. Cost is near zero either way; the risk of adopting the package as-is is an unmaintained dependency in our build pipeline.

To engineering: The ruleset encodes Laravel Shift's style conventions and would give us a defensible default in about ten minutes. But it's a thin wrapper around PHP-CS-Fixer, last released December 2021 and effectively unmaintained; rule drift against current PHP-CS-Fixer and Laravel versions is likely. Recommendation: use laravel/pint if we have no strong opinion, or vendor the ruleset into .php-cs-fixer.dist.php if we want explicit control and a documented origin. Either way we get the outcome we want — consistent formatting enforced in CI — without the dependency risk. If a repo already uses this package, schedule migration rather than an emergency swap.

Net PM position: Reject as a dependency. Accept the underlying idea. The decision it should trigger is "we need a committed style standard and a CI enforcement step," and the answer to that is Pint or a vendored config, not this package.

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.
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
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings