-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
155 lines (155 loc) · 6.29 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "sshilko/php-api-myrpc-beta",
"type": "library",
"version": "1.0.0",
"description": "API facade in PHP for JSON RPC",
"license": "MIT",
"authors": [
{
"name": "Sergei Shilko",
"email": "contact@sshilko.com",
"homepage": "https://github.com/sshilko",
"role": "Developer"
}
],
"keywords": ["api", "php", "json", "rpc", "schema", "grpc", "rest", "json-schema", "openapi"],
"config": {
"vendor-dir": "vendor",
"preferred-install": {
"*": "dist"
},
"prepend-autoloader": false,
"optimize-autoloader": true,
"classmap-authoritative": false,
"process-timeout": 360,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"app-pre-commit": [
"@putenv XDEBUG_MODE=off",
"pre-commit run --config build/.pre-commit-config.yaml"
],
"app-quality": [
"@app-phpcbf",
"@app-phpcs",
"@app-phpcpd",
"@app-pdepend",
"@app-phpmd",
"@app-phpstan",
"@app-psalm-alter",
"@app-psalm-taint",
"@app-psalm",
"@app-phan"
],
"app-nocache":[
"rm -rf build/tmp/cache/* && rm -rf build/tmp/psalm-cache/* && echo build/tmp cache cleared"
],
"app-psalm":[
"@putenv XDEBUG_MODE=off",
"php ./vendor/bin/psalm.phar --root=$PWD/src --php-version=$(php -r 'echo PHP_VERSION;') --config build/psalm.xml --memory-limit=-1 --no-diff --show-info=true --long-progress --stats --disable-extension=xdebug --report=$PWD/build/tmp/psalm.txt $1"
],
"app-psalm-alter": [
"@putenv XDEBUG_MODE=off",
"php ./vendor/bin/psalm.phar --root=$PWD/src --php-version=$(php -r 'echo PHP_VERSION;') --config build/psalm.xml --alter --issues=MissingParamType,MissingReturnType,InvalidReturnType,InvalidNullableReturnType,InvalidFalsableReturnType,PossiblyUndefinedVariable,UnnecessaryVarAnnotation,ParamNameMismatch"
],
"app-psalm-taint": [
"@putenv XDEBUG_MODE=off",
"php ./vendor/bin/psalm.phar --root=$PWD/src --php-version=$(php -r 'echo PHP_VERSION;') --config build/psalm.xml --taint-analysis --long-progress --disable-extension=xdebug"
],
"app-phpcbf":[
"@putenv XDEBUG_MODE=off",
"pre-commit run --all-files --config build/.pre-commit-config.yaml php-code-phpcbf"
],
"app-phpcs":[
"@putenv XDEBUG_MODE=off",
"pre-commit run --all-files --config build/.pre-commit-config.yaml php-code-phpcs"
],
"app-phpstan":[
"@putenv XDEBUG_MODE=off",
"pre-commit run --all-files --config build/.pre-commit-config.yaml php-code-phpstan"
],
"app-phpmd": [
"@putenv XDEBUG_MODE=off",
"php ./vendor/phpmd/phpmd/src/bin/phpmd --reportfile build/tmp/phpmd.txt src/ ansi build/phpmd-rulesets.xml; cat build/tmp/phpmd.txt"
],
"app-phpunit": [
"@putenv XDEBUG_MODE=off",
"php ./vendor/phpunit/phpunit/phpunit --no-coverage --configuration test/phpunit.xml $1"
],
"app-phpunit-coverage": [
"@putenv XDEBUG_MODE=coverage",
"php ./vendor/phpunit/phpunit/phpunit --configuration test/phpunit.xml"
],
"app-phpunit-badges-coverage": [
"@putenv XDEBUG_MODE=off",
"php test/phpunit.xml.badges.php"
],
"app-phpdoc": [
"@putenv XDEBUG_MODE=off",
"/usr/bin/phpdoc --config /app/build/phpdoc.xml"
],
"app-phan": [
"@putenv PHAN_DISABLE_XDEBUG_WARN=1",
"@putenv PHAN_ALLOW_XDEBUG=1",
"php ./vendor/bin/phan --analyze-twice --load-baseline='./build/phan.baseline.php' --disable-plugins --no-color -k ./build/phan.php --long-progress-bar --output-mode codeclimate -o build/tmp/phan-codeclimate.json || echo 'Phan report saved'",
"(tr '\\0' ',' < build/tmp/phan-codeclimate.json | sed 's/^/[/' | sed 's/,$/]/') > build/tmp/phan-codeclimate-v1.json",
"cat build/tmp/phan-codeclimate-v1.json | jq"
],
"app-phan-baseline": [
"@putenv XDEBUG_MODE=off",
"@putenv PHAN_DISABLE_XDEBUG_WARN=1",
"@putenv PHAN_ALLOW_XDEBUG=1",
"php ./vendor/bin/phan --save-baseline=./build/phan.baseline.php --disable-plugins --color -k ./build/phan.php --output-mode html -o build/tmp/phan.html --long-progress-bar; cat build/tmp/phan.html"
],
"app-phpcpd": [
"@putenv XDEBUG_MODE=off",
"php /usr/bin/phpcpd src"
],
"app-pdepend": [
"@putenv XDEBUG_MODE=off",
"php ./vendor/bin/pdepend --configuration=$PWD/build/pdepend.xml --dependency-xml=$PWD/build/tmp/pdepend-dependency-xml.xml --jdepend-chart=$PWD/build/tmp/pdepend-jdepend-chart.svg --jdepend-xml=$PWD/build/tmp/pdepend-jdepend-xml.xml --summary-xml=$PWD/build/tmp/pdepend-summary-xml.xml --overview-pyramid=$PWD/build/tmp/pdepend-overview-pyramid.svg src"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"ext-posix": "*",
"ext-ast": "*",
"nikic/php-parser": "^4",
"pdepend/pdepend": "^2.12",
"phan/phan": "^5.4",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5",
"psalm/phar": "*",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.7",
"composer/composer": "^2"
},
"require": {
"php": ">=8.1",
"ext-json": "*",
"ext-pcntl": "*",
"composer-plugin-api": ">=2.2.0",
"composer-runtime-api": "^2",
"psr/container": "^1.1",
"psr/log": "^1 || ^2.0 || ^3.0",
"symfony/property-access": "^6.4",
"symfony/property-info": "^6.4",
"symfony/serializer": "^6.4",
"symfony/validator": "^6.4"
},
"autoload": {
"psr-4": {
"myrpc\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"phpunit\\": "test/phpunit"
}
}
}