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+.
Architecture fit: This Composer plugin integrates seamlessly into Laravel's existing dependency management workflow. Laravel projects inherently rely on Composer for package management, and this plugin operates as a native Composer extension that dynamically configures PHP_CodeSniffer standards without manual intervention. It aligns perfectly with Laravel's development toolchain where code quality tools like phpcs are commonly used via composer scripts.
Integration feasibility: Extremely high. Requires only adding to require-dev, configuring Composer plugin permissions, and running composer install. The plugin automatically detects and configures standards from Composer packages with phpcodesniffer-standard type, eliminating manual path configuration. Laravel projects using standard Composer workflows will experience near-zero friction during implementation.
Technical risk: Moderate. Key risks include:
composer config allow-plugins... true)Key questions:
installed_paths configurations in phpcs.xml that might conflict?How can I help you explore Laravel packages today?