dealerdirect/phpcodesniffer-composer-installer
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
squizlabs/php_codesniffer | 3.9.2 | - | BSD-3-Clause | prod |
The Dealerdirect PHP CodeSniffer Composer Installer is an essential composer plugin facilitating easy installation of PHP_CodeSniffer coding standards (rulesets). It eliminates the necessity for symbolic linking of directories, repositories checkout at specific locations, or modifying the phpcs
configuration.
Using the Dealerdirect PHP CodeSniffer Composer Installer is straightforward and efficient. Start by requiring this package as a development dependency in Composer:
composer require --dev dealerdirect/phpcodesniffer-composer-installer
For Composer 2.2 and higher, you need to grant permission for the plugin to execute the code. Upon granting permission, the following snippet will be automatically added to your composer.json
file:
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
For Composer versions lower than 2.2, you can add the permission flag ahead of the upgrade by running the following command:
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
An added advantage of this plugin is its compatibility with PHP 5.4+, 7.x, 8.x, Composer 1.x, 2.x, and PHP_CodeSniffer 2.x and 3.x.
The official documentation for the Dealerdirect PHP CodeSniffer Composer Installer can be found in the repository's README.md file at https://github.com/PHPCSStandards/composer-installer.git. The docs cover everything from basic usage and compatibility to contributing guidelines, affording developers an in-depth understanding of the composer package and how to leverage its features.