Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

composer-installer

> 编程语言
Open source

Composer installer for PHP_CodeSniffer coding standards

601 stars0 likes2 views
WebsiteGitHub

About

Composer installer for PHP_CodeSniffer coding standards

PHP_CodeSniffer Standards Composer Installer Plugin

Last Commit Awesome License

Tests Latest Version on Packagist Packagist

Contributor Covenant

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.

Usage

Installation can be done with Composer, by requiring this package as a development dependency:

bash
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:

json
{
    "config": {
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    }
}

You can safely add the permission flag (to avoid Composer needing to ask), by running:

bash
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true

That's it.

Compatibility

This plugin is compatible with:

  • PHP 7.2, and 8.x _(Support for PHP v8 is available since 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"

Contributing

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:

Authors & contributors

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.

Funding

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.

License

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· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPcoding-standardscomposer-installationcomposer-pluginphp-codesniffer

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言