-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
executable file
·79 lines (79 loc) · 2.28 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"name": "tomrf/autowire",
"type": "library",
"description": "autowire dependency injection from PSR-11 containers",
"keywords": [
"dependency injection",
"autowire",
"reflection",
"psr-11",
"container"
],
"homepage": "http://github.com/tomrf/autowire",
"license": "MIT",
"authors": [
{
"name": "Tom Rune Flo",
"email": "tom@x86.no",
"homepage": "http://github.com/tomrf/"
}
],
"extra": {
"intro": [
"A simple PHP library that facilitates autowired dependency injection by fetching class constructor dependencies from one or more PSR-11 containers.",
"",
"Autowire uses the PHP reflection API to peek at constructor parameter types and injects required and optional dependencies from assigned containers."
],
"example": [
"$autowire = new \\Tomrf\\Autowire\\Autowire();",
"",
"$instance = $autowire->instantiateClass(MyClassWithDependencies::class, $container);"
]
},
"require": {
"php": "^8.0",
"psr/container": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.6",
"friendsofphp/php-cs-fixer": "^3.15",
"phpmd/phpmd": "^2.13",
"roave/security-advisories": "dev-latest",
"tomrf/readme-gen": "^0.0"
},
"autoload": {
"psr-4": {
"Tomrf\\Autowire\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tomrf\\Autowire\\Test\\": "tests/"
}
},
"scripts": {
"phpunit": [
"phpunit --do-not-cache-result"
],
"phpstan": [
"phpstan analyze --level max src"
],
"cs-fixer": [
"php-cs-fixer fix --allow-risky=yes --diff --verbose src"
],
"phpmd": [
"phpmd src/ ansi .phpmd-ruleset.xml"
],
"coverage-html": [
"@putenv XDEBUG_MODE=coverage",
"@phpunit --coverage-html .phpunit.cache/code-coverage/html",
"php -S localhost:0 -t .phpunit.cache/code-coverage/html"
],
"test": [
"@phpunit",
"@phpmd",
"@phpstan"
]
}
}