/
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/aura-router-module",
"description": "Aura Router v3 module for BEAR.Package",
"keywords": [
"BEAR.Sunday",
"Router",
"Aura"
],
"license": "MIT",
"authors": [
{
"name": "Akihito Koriyama",
"email": "akihito.koriyama@gmail.com"
}
],
"require": {
"php": "^7.3 || ^8.0",
"aura/router": "^3.2",
"doctrine/annotations": "^1.7",
"nyholm/psr7": "^1.3",
"bear/app-meta": "^1.6",
"bear/package": "^1.13",
"bear/sunday": "^1.5",
"ray/di": "^2.14",
"ray/aop": "^2.12"
},
"require-dev": {
"phpunit/phpunit": "^9.5.25",
"bamarni/composer-bin-plugin": "^1.4"
},
"autoload": {
"psr-4": {
"BEAR\\Package\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"BEAR\\Package\\": "tests/",
"FakeVendor\\HelloWorld\\": "tests/Fake/fake-app/src"
}
},
"scripts": {
"post-install-cmd": ["@composer bin all install --ansi"],
"post-update-cmd": ["@composer bin all update --ansi"],
"test": ["./vendor/bin/phpunit"],
"tests": ["@cs", "@test", "@sa"],
"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": ["phpcs --standard=./phpcs.xml src tests"],
"cs-fix": ["./vendor/bin/phpcbf src tests"],
"clean": ["./vendor/bin/phpstan clear-result-cache", "./vendor/bin/psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["./vendor/bin/phpstan analyse -c phpstan.neon", "psalm --show-info=true"],
"metrics": ["./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"],
"phpmd": ["./vendor/bin/phpmd --exclude src/Annotation src text ./phpmd.xml"],
"build": ["@cs", "@sa", "@pcov", "@metrics"]
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
},
"bamarni-bin.forward-command": true,
"bamarni-bin.bin-links": true
}
}