-
Notifications
You must be signed in to change notification settings - Fork 20
/
composer.json
82 lines (82 loc) · 3.07 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
80
81
82
{
"name": "bear/resource",
"description": "Hypermedia framework for object as a service",
"keywords": ["Hypermedia", "REST", "Object as a service"],
"license": "MIT",
"authors": [
{
"name": "Akihito Koriyama",
"email": "akihito.koriyama@gmail.com"
}
],
"require": {
"php": "^8.1",
"ext-filter": "*",
"ext-curl": "*",
"justinrainbow/json-schema": "^5.3 || ^6.0",
"koriym/attributes": "^1.0",
"koriym/http-constants": "^1.1",
"nocarrier/hal": "^0.9.12",
"phpdocumentor/reflection-docblock": "^5.2",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"ray/aop": "^2.12.3",
"ray/di": "^2.13",
"ray/web-param-module": "^2.1.1",
"rize/uri-template": "^0.3"
},
"require-dev": {
"phpunit/phpunit": "^9.5.10",
"doctrine/coding-standard": "^12.0",
"phpmd/phpmd": "^2.9",
"phpmetrics/phpmetrics": "^2.7",
"phpstan/phpstan": "^1.3",
"psalm/plugin-phpunit": "^0.13",
"squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^4.17",
"ray/rector-ray": "^1.0",
"rector/rector": "^1.2.4",
"ray/compiler": "^1.9.1",
"bear/devtools": "^1.0",
"koriym/json-schema-faker": "^0.3.1"
},
"autoload": {
"psr-4": {
"BEAR\\Resource\\": ["src/", "src/JsonSchema", "src-deprecated"]
},
"files": [
"src-files/uri_template.php"
],
"exclude-from-classmap": ["/src-deprecated/"]
},
"autoload-dev": {
"psr-4": {
"BEAR\\Resource\\": [
"tests/",
"tests/Fake/",
"tests-deprecated"
],
"FakeVendor\\Sandbox\\": "tests/Fake/FakeVendor/Sandbox/",
"FakeVendor\\Blog\\": "tests/Fake/FakeVendor/Blog/src",
"FakeVendor\\News\\": "tests/Fake/FakeVendor/News/src"
},
"files": ["tests/Fake/AppInjector.php"]
},
"scripts" :{
"test": ["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": ["phpcbf src tests"],
"clean": ["phpstan clear-result-cache", "psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["psalm --monochrome --show-info=true", "phpstan --memory-limit=-1 analyse -c phpstan.neon"],
"metrics": ["phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"],
"phpmd": ["phpmd --exclude src/Annotation src text ./phpmd.xml"],
"build": ["@cs", "@sa", "@pcov", "@metrics"]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}