summaryrefslogtreecommitdiffstats
path: root/composer.json
diff options
context:
space:
mode:
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json38
1 files changed, 18 insertions, 20 deletions
diff --git a/composer.json b/composer.json
index 0f22f9c..f9b531c 100644
--- a/composer.json
+++ b/composer.json
@@ -2,15 +2,15 @@
"name": "php-di/php-di",
"type": "library",
"description": "The dependency injection container for humans",
- "keywords": ["di", "dependency injection", "container"],
+ "keywords": ["di", "dependency injection", "container", "ioc", "psr-11", "psr11", "container-interop"],
"homepage": "http://php-di.org/",
"license": "MIT",
"autoload": {
"psr-4": {
- "DI\\": "src/DI/"
+ "DI\\": "src/"
},
"files": [
- "src/DI/functions.php"
+ "src/functions.php"
]
},
"autoload-dev": {
@@ -20,33 +20,31 @@
}
},
"scripts": {
- "test": "phpunit"
+ "test": "phpunit",
+ "format-code": "php-cs-fixer fix --allow-risky=yes",
+ "phpstan": "phpstan analyse -l 6 -c phpstan.neon src"
},
"require": {
- "php": ">=5.5.0",
- "container-interop/container-interop": "~1.2",
- "psr/container": "~1.0",
- "php-di/invoker": "^1.3.2",
- "php-di/phpdoc-reader": "^2.0.1"
+ "php": ">=7.0.0",
+ "psr/container": "^1.0",
+ "php-di/invoker": "^2.0",
+ "php-di/phpdoc-reader": "^2.0.1",
+ "jeremeamia/superclosure": "^2.0",
+ "nikic/php-parser": "^2.0|^3.0|^4.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.5",
- "mnapoli/phpunit-easymock": "~0.2.0",
- "doctrine/cache": "~1.4",
+ "phpunit/phpunit": "~6.4",
+ "mnapoli/phpunit-easymock": "~1.0",
"doctrine/annotations": "~1.2",
- "phpbench/phpbench": "@dev",
- "ocramius/proxy-manager": "~1.0|~2.0"
- },
- "replace": {
- "mnapoli/php-di": "*"
+ "ocramius/proxy-manager": "~2.0.2",
+ "friendsofphp/php-cs-fixer": "^2.4",
+ "phpstan/phpstan": "^0.9.2"
},
"provide": {
- "container-interop/container-interop-implementation": "^1.0",
"psr/container-implementation": "^1.0"
},
"suggest": {
- "doctrine/cache": "Install it if you want to use the cache (version ~1.4)",
"doctrine/annotations": "Install it if you want to use annotations (version ~1.2)",
- "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~1.0 or ~2.0)"
+ "ocramius/proxy-manager": "Install it if you want to use lazy injection (version ~2.0)"
}
}