diff --git a/composer.json b/composer.json index 225b5b7c..e7fdf1b7 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "squizlabs/php_codesniffer": "*" }, "require-dev": { - "composer/composer": "*" + "composer/composer": "*", + "wimg/php-compatibility": "^8.0" }, "suggest": { "dealerdirect/qa-tools": "All the PHP QA tools you'll need" @@ -41,5 +42,10 @@ }, "extra": { "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "scripts": { + "install-codestandards": [ + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run" + ] } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 00000000..eae3b8b0 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,17 @@ + + + Coding standards for PHP_CodeSniffer Standards Composer Installer Plugin + + + + + + . + */.github/* + */vendor/* + + + + + +