diff --git a/composer.json b/composer.json index f9bf0cbd..6831179f 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,25 @@ "ext-curl": "*" }, "require-dev": { - "phpunit/phpunit": "9.*" + "phpunit/phpunit": "9.*", + "squizlabs/php_codesniffer": "3.*", + "phpcsstandards/phpcsutils": "@alpha", + "phpcompatibility/php-compatibility": "dev-develop" }, "autoload": { "classmap": ["lib"] }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, "extra": { "branch-alias": { "dev-master": "2.4.x-dev" } - } + }, + "scripts": { + "compatibility": "phpcs --extensions=php --severity=1 --standard=PHPCompatibility --runtime-set testVersion 8.1- lib Tests" + } }