summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json75
1 files changed, 70 insertions, 5 deletions
diff --git a/composer.json b/composer.json
index b6ba001..708e6d9 100644
--- a/composer.json
+++ b/composer.json
@@ -19,17 +19,82 @@
}
},
"require": {
- "php": ">=5.5.0",
- "psr/log": "~1.0",
- "symfony/console": "~2.5|~3.0"
+ "php": ">=5.4.5",
+ "psr/log": "^1.0",
+ "symfony/console": "^2.8|^3|^4"
},
"require-dev": {
- "phpunit/phpunit": "4.*",
- "squizlabs/php_codesniffer": "2.*"
+ "phpunit/phpunit": "^6",
+ "g1a/composer-test-scenarios": "^3",
+ "php-coveralls/php-coveralls": "^1",
+ "squizlabs/php_codesniffer": "^2"
+ },
+ "minimum-stability": "stable",
+ "scripts": {
+ "cs": "phpcs -n --standard=PSR2 src",
+ "cbf": "phpcbf -n --standard=PSR2 src",
+ "unit": "phpunit",
+ "lint": [
+ "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
+ "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
+ ],
+ "test": [
+ "@lint",
+ "@unit",
+ "@cs"
+ ]
},
"extra": {
+ "scenarios": {
+ "symfony4": {
+ "require": {
+ "symfony/console": "^4.0"
+ },
+ "config": {
+ "platform": {
+ "php": "7.1.3"
+ }
+ }
+ },
+ "symfony2": {
+ "require": {
+ "symfony/console": "^2.8"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.36"
+ },
+ "remove": [
+ "php-coveralls/php-coveralls"
+ ],
+ "config": {
+ "platform": {
+ "php": "5.4.8"
+ }
+ }
+ },
+ "phpunit4": {
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.36"
+ },
+ "remove": [
+ "php-coveralls/php-coveralls"
+ ],
+ "config": {
+ "platform": {
+ "php": "5.4.8"
+ }
+ }
+ }
+ },
"branch-alias": {
"dev-master": "1.x-dev"
}
+ },
+ "config": {
+ "optimize-autoloader": true,
+ "sort-packages": true,
+ "platform": {
+ "php": "7.0.8"
+ }
}
}