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+.
installed_paths configuration in PHPCS, ensuring consistency across teams and reducing onboarding time for new developers.composer install, ensuring linting runs without manual setup.* or ^0.4.1 || ^0.5), ensuring compatibility across projects.Adopt When:
installed_paths configuration.Look Elsewhere If:
open_basedir restrictions (though v1.2.1 mitigates this risk).installed_paths."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."
*"This plugin removes the pain of managing PHPCS standards in Composer projects. No more:
phpcs.xml.installed_paths issues in CI.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."*
*"This solves a CI flakiness problem for PHP projects. Currently, linting steps fail when PHPCS standards aren’t properly installed. With this plugin:
composer install, matching the require-dev dependencies.before_script hacks to clone repos or symlink directories.composer.json and let the plugin run in the post-install-cmd script.It’s a zero-maintenance upgrade for our linting workflows."*
How can I help you explore Laravel packages today?