-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
64 lines (64 loc) · 2.32 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
{
"name": "bear/streamer",
"description": "BEAR.Sunday HTTP stream responder",
"keywords": ["BEAR", "stream"],
"license": "MIT",
"authors": [
{
"name": "Akihito Koriyama",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"BEAR\\Streamer\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BEAR\\Streamer\\": [
"tests",
"tests/Fake"
]
},
"files": [
"tests/header.php"
]
},
"require": {
"php": "^8.1",
"bear/resource": "^1.15.1",
"bear/sunday": "^1.5",
"ray/di": "^2.11",
"ray/aop": "^2.10.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6.19",
"bamarni/composer-bin-plugin": "^1.4"
},
"scripts" :{
"bin": "echo 'no bin' installed.",
"test": ["./vendor/bin/phpunit"],
"tests": ["@cs", "@sa", "@test"],
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"],
"pcov": ["php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml"],
"cs": ["./vendor-bin/tools/vendor/bin/phpcs"],
"cs-fix": ["./vendor-bin/tools/vendor/bin/phpcbf src tests"],
"clean": ["./vendor-bin/tools/vendor/bin/phpstan clear-result-cache", "./vendor-bin/tools/vendor/bin/psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["./vendor-bin/tools/vendor/bin/phpstan analyse -c phpstan.neon", "psalm --show-info=true"],
"metrics": ["./vendor-bin/tools/vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception --junit=build/junit.xml src"],
"phpmd": ["./vendor-bin/tools/vendor/bin/phpmd --exclude src/Annotation src text ./phpmd.xml"],
"build": ["@cs", "@sa", "@pcov", "@metrics"]
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
}
}