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

Laravel Phpcs Laravel Package

mreduar/laravel-phpcs

Laravel PHPCS brings an opinionated PHP CodeSniffer ruleset and handy Artisan commands to your Laravel project, making it easy to lint code and auto-fix style issues so teams can enforce consistent coding standards and catch problems early.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Code-quality standards / "definition of done": Gives the team a concrete, automatable definition of Laravel-consistent style, turning subjective review comments ("brace on new line", "import ordering") into a CI gate instead of a human negotiation.
  • Onboarding and contributor experience: A single composer require --dev ruleset shortens ramp-up for new hires, contractors, and open-source contributors by pinning style expectations to Laravel's own conventions rather than tribal knowledge.
  • Build vs. buy vs. adopt: This is a free (MIT), pre-built ruleset — the realistic decision is not "build it" but "adopt it, adopt the official Laravel alternative, or do nothing." Building an equivalent internally is hard to justify for a 38-star, single-maintainer package; the cost of ownership is really the cost of pinning and auditing it.
  • Roadmap impact is indirect, not customer-facing: It supports delivery predictability (fewer style-churn diffs, faster PR reviews, lower merge-conflict rate) rather than any user-visible feature. Do not put it on a customer-facing roadmap; treat it as platform/DX hygiene.
  • Use cases worth evaluating: legacy Laravel codebase clean-ups before a major refactor, multi-team repos that need one style contract, pre-acquisition or pre-handover code due-diligence checks, and editor/IDE integration for teams already standardized on PHP_CodeSniffer.
  • Vendor/tech-stack risk register: A package last released in 2022 with a small star count belongs on the dependency-risk list, not the strategic-bet list. The PM decision is "adopt with an exit plan" or "skip."

When to Consider This Package

Consider it when:

  • Your team has already standardized on PHP_CodeSniffer (PHPCS) as the linter, and you want Laravel-specific sniffs without writing them yourselves.
  • You want a rule-level style contract that plugs into existing IDE plugins, Composer scripts, and CI pipelines.
  • You need something cheap and reversible — a dev dependency you can drop in under an hour and remove just as fast.
  • You have a small, low-complexity codebase where per-sniff configuration is acceptable and nobody is expecting active upstream support.

Look elsewhere when:

  • You want the modern Laravel default. Laravel Pint (official, actively maintained, PHP-CS-Fixer-based, zero-config) does most of this job and is the safer bet for new projects. Running both means two toolchains and two config formats.
  • Upstream health matters. Last release November 2022, ~38 stars, effectively single-maintainer — high bus factor, no security-response expectations. For regulated or long-lived codebases, prefer vendor-backed or high-velocity tooling.
  • You need security or type analysis. PHPCS is a style/lint tool, not a static analyzer. Reach for PHPStan, Psalm, or Larastan instead — do not let a style ruleset get pitched as a security control.
  • You need it to run clean on PHP 8.3+/Laravel 11+. Stale rulesets and stale PHPCS versions are a recurring source of false positives and dependency conflicts; validate against your current stack before committing.

How to Pitch It (Stakeholders)

To executives (one paragraph): This is a free, MIT-licensed developer tool that enforces Laravel's own coding conventions automatically, so code reviews spend time on logic and product behavior instead of formatting debates. Cost is effectively zero in licensing; the real cost is maintenance attention. It has a small community and no release since 2022, so I recommend treating it as an optional, pinned developer dependency with an exit plan — not as a platform standard. If we want an official, actively maintained equivalent, Laravel Pint is the safer default and I'd recommend it first.

To engineering (one paragraph): Drop-in PHP_CodeSniffer ruleset: add as a require-dev, wire it into Composer scripts and CI, and you get Laravel-style sniffs with no custom rule authoring. It is unopinionated about your workflow and integrates with standard PHPCS IDE plugins. Caveats: last tagged release was Nov 2022, single maintainer, and it overlaps almost entirely with Laravel Pint. Adopt it only if you're already invested in PHPCS and want sniff-level granularity; otherwise standardize on Pint and skip the second toolchain. Either way, pin the version and add a review date so a stale lint config never silently becomes "passing CI."

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.
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
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin