diff --git a/README.md b/README.md index 8dce51c..92f2d28 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ $ phpcs --standard=./vendor/magento-ecg/coding-standard/Ecg /path/to/code $ phpcs --standard=./vendor/magento-ecg/coding-standard/EcgM2 /path/to/code ``` -As a one time thing, you can add the ECG standards directory to PHP_CodeSniffer's installed paths: +This package is compatible with Composer Installer Plugins for PHPCS coding standards (such as https://github.com/Dealerdirect/phpcodesniffer-composer-installer) and can be automatically registered with PHPCS during installation. + +Alternatively, you can manually add the ECG standards directory to PHP_CodeSniffer's installed paths: ```sh $ phpcs --config-set installed_paths /path/to/your/folder/vendor/magento-ecg/coding-standard ``` diff --git a/composer.json b/composer.json index 5c66d7d..87a9856 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,7 @@ "description": "A set of PHP_CodeSniffer rules and sniffs.", "homepage": "https://github.com/magento-ecg/coding-standard", "license": "MIT", + "type": "phpcodesniffer-standard", "authors": [ { "name": "Magento Expert Consulting Group",