用于 PHP_CodeSniffer 编码标准的 Composer 安装程序
This composer installer plugin makes installation of PHP_CodeSniffer coding standards (rulesets) straight-forward.
No more symbolic linking of directories, checking out repositories on specific locations or manually changing the phpcs configuration.
Installation can be done with Composer, by requiring this package as a development dependency:
composer require --dev dealerdirect/phpcodesniffer-composer-installer:"^1.0"Since Composer 2.2, Composer will ask for your permission to allow this plugin to execute code. For this plugin to be functional, permission needs to be granted.
When permission has been granted, the following snippet will automatically be added to your composer.json file by Composer:
{
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}You can safely add the permission flag (to avoid Composer needing to ask), by running:
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer trueThat's it.
This plugin is compatible with:
v0.7.0, support for PHP =7.2.0",
"squizlabs/php_codesniffer" : "^4.0"
},
"type" : "phpcodesniffer-standard"
}…bash
composer require dealerdirect/phpcodesniffer-composer-installer:"*" composer require dealerdirect/phpcodesniffer-composer-installer:"^0.4.1 || ^0.5 || ^0.6 || ^0.7 || ^1.0"
This is an active open-source project. We are always open to people who want to use the code or contribute to it.
We've set up a separate document for our contribution guidelines.
Thank you for being involved! :heart_eyes:
The original idea and setup of this repository is by Franck Nijhof, employee @ Dealerdirect.
For a full list of all authors and/or contributors, check the contributors page.
This project is included in the projects supported via the PHP_CodeSniffer Open Collective.
If you use this plugin, financial contributions to the Open Collective are encouraged and appreciated.
The MIT License (MIT)
Copyright (c) 2016-2022 Dealerdirect B.V. and contributors Copyright (c) 2022- PHPCSStandards and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
暂无开放 Issues,或尚未同步最近议题。