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 registers PHP_CodeSniffer coding standards (rulesets) from your dependencies. It scans installed packages for phpcodesniffer-standard rulesets and configures PHPCS installed_paths—no symlinks or manual setup.

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) without manual configuration or symbolic links. Reduces friction for engineering teams to enforce consistent coding practices.
  • Build vs. Buy Decision: Eliminates the need to build custom scripts or CI/CD workflows for managing PHPCS standards. A "buy" decision for teams already using Composer.
  • CI/CD Pipeline Integration: Automates PHPCS standard installation during composer install, ensuring linting tools are pre-configured in CI environments (e.g., GitHub Actions, GitLab CI). Supports pre-commit hooks or post-install scripts.
  • Scaling Custom Standards: Simplifies distribution of internal coding standards (e.g., company-specific rules) by packaging them as Composer dependencies. Reduces onboarding time for new developers.
  • Roadmap for Developer Experience: Aligns with initiatives to improve DX by reducing manual setup (e.g., "zero-config" linting). Can be paired with tools like PHPStan or Psalm for a unified static analysis toolchain.

When to Consider This Package

  • Adopt When:

    • Your team uses PHP_CodeSniffer for linting but struggles with manual installed_paths configuration in phpcs.xml.
    • You maintain multiple PHPCS standards (e.g., PSR, WordPress, Symfony) and want to avoid version conflicts or manual symlinking.
    • Your project relies on Composer for dependency management and you want to automate PHPCS setup during composer install.
    • You’re developing custom coding standards and want to distribute them as reusable Composer packages.
    • Your CI/CD pipeline lacks pre-configured PHPCS environments, leading to flaky linting checks.
  • Look Elsewhere If:

    • Your team doesn’t use Composer (e.g., relies on Packagist or manual PHPCS installs).
    • You need advanced PHPCS customization (e.g., dynamic rule loading) beyond installed_paths.
    • Your project uses non-PHP languages or PHPCS isn’t a priority.
    • You’re constrained by legacy systems where Composer plugins aren’t supported (e.g., very old PHP versions <5.4).
    • You prefer alternative linting tools (e.g., ESLint for JavaScript, RuboCop for Ruby).

How to Pitch It (Stakeholders)

For Executives/Business Leaders:

*"This package automates the setup of PHP code quality standards (like PSR12 or WordPress rules) using Composer, eliminating manual configuration and reducing onboarding time for developers. By standardizing linting across our codebase, we can:

  • Improve code consistency and maintainability.
  • Cut CI/CD failures caused by misconfigured linting tools.
  • Accelerate developer ramp-up by removing setup friction.
  • Simplify compliance with team coding guidelines. It’s a low-effort, high-impact tool that aligns with our engineering best practices—no new infrastructure needed."*

For Engineering Teams:

*"This Composer plugin automatically installs and configures PHP_CodeSniffer standards during composer install, so you never have to manually edit phpcs.xml or symlink directories again. Key benefits:

  • One command (composer install) sets up all your linting rules (e.g., PSR, Symfony, custom standards).
  • Works in CI/CD: Ensures linting is pre-configured in every environment.
  • Supports custom standards: Package your team’s rules as a Composer dependency and share them across projects.
  • Future-proof: Integrates with modern Composer (v2.2+) and PHP_CodeSniffer (v3/4). Example: Add dealerdirect/phpcodesniffer-composer-installer to require-dev, and PHPCS just works—no extra steps."*

For Technical Leaders/Architects:

*"This solves a common pain point in PHP projects: managing PHPCS standards without manual intervention. It:

  • Replaces ad-hoc scripts for configuring installed_paths in PHPCS.
  • Leverages Composer’s plugin system to avoid reinventing the wheel.
  • Supports nested standards: If your project uses phpcompatibility/php-compatibility + wp-coding-standards/wpcs, this plugin handles both seamlessly.
  • Extensible: You can trigger the installer via Composer scripts (e.g., in CI) or customize search depth for standards. Trade-off: Requires Composer v2.2+ (minor upgrade if needed). Worth it for teams invested in PHPCS."*
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.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony