Weave Code
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

Phpcodesniffer Composer Installer Laravel Package

dealerdirect/phpcodesniffer-composer-installer

Composer installer plugin that automatically discovers and installs PHP_CodeSniffer coding standards (rulesets) from Composer packages. It configures PHPCS installed_paths for you, avoiding manual symlinks and configuration. Supports PHPCS 3/4 and Composer 2.2+.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

This package eliminates manual configuration of PHP_CodeSniffer standards, enabling teams to adopt consistent coding standards with minimal setup effort. It supports key decisions like:

  • Build vs. Buy: Avoids building custom path-management solutions (saving 10–20 engineering hours per project) by leveraging a proven, maintained open-source tool.
  • Roadmap Prioritization: Freeing up engineering time from configuration overhead allows focus on feature development rather than tooling maintenance.
  • Use Cases: Critical for multi-project teams (e.g., agencies managing client codebases), CI/CD pipelines requiring standardized linting, and onboarding new developers where consistent code quality is non-negotiable.

When to Consider This Package

Adopt when:

  • Using Composer 2.2+ and PHP_CodeSniffer 3.x/4.x in a project with multiple standards (e.g., PSR-12, WordPress, custom rulesets).
  • Teams experience manual configuration errors or inconsistent linting across environments.
  • Scaling standards across multiple repositories or open-source contributions.
    Look elsewhere if:
  • The project doesn’t use Composer or PHP_CodeSniffer (e.g., ESLint for JS, standalone linters).
  • Using outdated Composer (<2.2) or PHP_CodeSniffer 2.x (unsupported since v1.1.0/v1.2.0).
  • A single, trivial standard exists with no need for automation (manual setup may suffice).

How to Pitch It (Stakeholders)

Executives: "This MIT-licensed plugin automates code standard setup, saving engineering teams 15+ hours monthly on configuration errors and onboarding. Used by WordPress and major open-source projects, it ensures consistent quality with zero manual steps—reducing technical debt and accelerating feature delivery at no cost."
Engineering: "Just add it as a dev dependency—no more symlink hacks or path editing. Automatically discovers and configures any PHPCS standard (WordPress, PSR, custom) via Composer. Integrates seamlessly into CI pipelines so linting runs consistently everywhere. Reduces 'works on my machine' issues and speeds up code reviews."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport