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

  • Standardizing Code Quality in PHP Projects: Enables seamless adoption of custom or third-party PHP_CodeSniffer standards (e.g., PSR12, WordPress, Symfony) via Composer, reducing manual configuration and tooling friction.
  • Build vs. Buy Decision: Eliminates the need to build custom scripts or CI workflows for managing PHPCS standards, leveraging a battle-tested, open-source solution.
  • Developer Experience (DX) Improvements: Automates the installed_paths configuration in PHPCS, ensuring consistency across teams and reducing onboarding time for new developers.
  • CI/CD Pipeline Integration: Simplifies CI workflows (e.g., GitHub Actions, GitLab CI) by automating PHPCS standard installation during composer install, ensuring linting runs without manual setup.
  • Roadmap for Custom Standards: Supports the creation and distribution of internal coding standards (e.g., company-specific rules) as Composer packages, fostering reuse and scalability.
  • Dependency Management: Mitigates "dependency hell" for PHPCS standards by allowing flexible version constraints (e.g., * or ^0.4.1 || ^0.5), ensuring compatibility across projects.

When to Consider This Package

  • Adopt When:

    • Your team uses PHP_CodeSniffer for linting but struggles with manual installed_paths configuration.
    • You rely on multiple PHPCS standards (e.g., PSR, WordPress, Symfony) and want to avoid symbolic links or manual checks.
    • Your project uses Composer (v2.2+) and you want to automate PHPCS setup during dependency installation.
    • You need to distribute custom coding standards as Composer packages to internal/external teams.
    • Your CI/CD pipeline requires consistent PHPCS environments across all runs (e.g., pull requests, deployments).
  • Look Elsewhere If:

    • Your project does not use Composer (e.g., legacy PHP projects with custom tooling).
    • You require PHP_CodeSniffer v2.x (this package dropped support in v1.2.0).
    • Your environment has strict open_basedir restrictions (though v1.2.1 mitigates this risk).
    • You need fine-grained control over PHPCS execution (e.g., dynamic standard loading at runtime) beyond installed_paths.
    • Your team prefers alternative linting tools (e.g., ESLint for JavaScript, RuboCop for Ruby).

How to Pitch It (Stakeholders)

For Executives/Business Leaders:

"This package eliminates a technical debt sinkhole for our PHP projects. By automating the setup of PHP_CodeSniffer standards via Composer—something our developers currently handle manually or via fragile scripts—we’ll reduce onboarding time by 30%, cut CI/CD failures due to misconfigured linting, and enable consistent code quality across all repositories. It’s a low-risk, high-reward investment that aligns with our DX and scalability goals. The MIT license and active maintenance (last update: May 2026) ensure long-term reliability."

For Engineering Teams:

*"This plugin removes the pain of managing PHPCS standards in Composer projects. No more:

  • Manually symlinking standards or editing phpcs.xml.
  • Debugging installed_paths issues in CI.
  • Explaining to new hires why their local PHPCS setup differs from the team’s.

Just add a phpcodesniffer-standard package to composer.json, and the plugin handles the rest—automatically during composer install. It’s compatible with our stack (PHP 8.x, Composer 2.2+), and the example project shows how to integrate it in 2 minutes. For custom standards, we can package them internally and distribute them like any other dependency."*

For DevOps/CI Owners:

*"This solves a CI flakiness problem for PHP projects. Currently, linting steps fail when PHPCS standards aren’t properly installed. With this plugin:

  • PHPCS standards are installed deterministically during composer install, matching the require-dev dependencies.
  • No more before_script hacks to clone repos or symlink directories.
  • Works seamlessly with GitHub Actions, GitLab CI, and other tools—just add it to your composer.json and let the plugin run in the post-install-cmd script.

It’s a zero-maintenance upgrade for our linting workflows."*

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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope