# PHP_CodeSniffer Standards Composer Installer Plugin

> Composer plugin that registers installed PHP_CodeSniffer coding standards automatically

Source: https://talira.ai/catalog/php-codesniffer-standards-composer-installer-plugin-vpxtv44k
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [PHPCSStandards](https://talira.ai/orgs/phpcsstandards.md)

The PHP_CodeSniffer Standards Composer Installer Plugin (dealerdirect/phpcodesniffer-composer-installer) makes coding standards installed with [Composer](https://talira.ai/catalog/composer-rk1d8tje.md) usable by [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md) without symlinks or manual configuration. It finds every installed package of type phpcodesniffer-standard, scans them and the project for rulesets, and sets PHP_CodeSniffer's installed_paths option. You add it as a dev dependency and allow it to run in composer.json's allow-plugins.

## Links

- GitHub: https://github.com/PHPCSStandards/composer-installer

## Problems it solves

- make phpcs find the coding standards I installed with Composer
- stop symlinking PHP_CodeSniffer rulesets by hand
- set up WordPress Coding Standards for phpcs in a Composer project

## Features

- Finds installed phpcodesniffer-standard packages and their rulesets
- Sets PHP_CodeSniffer's installed_paths automatically
- Works with PHP_CodeSniffer 3.x and 4.x and Composer 2.2+

## Limitations

- Composer 2.2+ asks permission before it runs: it must be allowed in allow-plugins[^1]
- Needs PHP 7.2 or newer[^1]

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.85, adoption 0.56, momentum 0.23, community 0.54, backing 0.30, extensibility 0.00.

- last commit 8 days ago
- 37 commits in the last 90 days
- latest release v1.2.1 6 months ago
- 602 GitHub stars
- 22 contributors
- accepts sponsorship (Github, Github, Open Collective)
- backed by PHPCSStandards

## Related

- Works with [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md)
- Works with [Composer](https://talira.ai/catalog/composer-rk1d8tje.md)

## Alternatives

- [PHP_CodeSniffer](https://talira.ai/catalog/php-codesniffer-zrnhrrbz.md): Detect and fix coding standard violations in PHP
- [WordPress Coding Standards for PHP_CodeSniffer](https://talira.ai/catalog/wordpress-coding-standards-for-php-codesniffer-598761fd.md): PHP_CodeSniffer rules that enforce WordPress coding conventions
- [laminas-coding-standard](https://talira.ai/catalog/laminas-coding-standard-wf2s5eqd.md): The Laminas Project's PHP_CodeSniffer coding standard ruleset, built on PSR-12
- [Easy Coding Standard (ECS)](https://talira.ai/catalog/easy-coding-standard-ecs-1f178a34.md): Runs PHP_CodeSniffer and PHP-CS-Fixer rules together, fast
- [Slevomat Coding Standard](https://talira.ai/catalog/slevomat-coding-standard-dfdcdx7p.md): Extra PHP_CodeSniffer sniffs for safer, cleaner and consistently formatted PHP
- [PHPMD](https://talira.ai/catalog/phpmd-5bvh074k.md): PHP Mess Detector: finds bugs and code smells in PHP

## Sources

[^1]: https://github.com/PHPCSStandards/composer-installer (checked 28 Nov 2026)
[^2]: https://github.com/PHPCSStandards/composer-installer/blob/main/LICENSE.md (checked 28 Nov 2026)
