-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
160 lines (160 loc) · 6.31 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
156
157
158
159
160
{
"name": "sshilko/php-sql-mydb",
"type": "library",
"description": "Simple yet powerful PHP wrapper for MySQL",
"license": "MIT",
"authors": [
{
"name": "Sergei Shilko",
"email": "[email protected]",
"homepage": "https://github.com/sshilko",
"role": "Developer"
}
],
"keywords": ["mysql", "php", "database", "mysqli", "pdo", "mysqlnd"],
"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-psalm":[
"@putenv XDEBUG_MODE=off",
"php ./vendor/bin/psalm.phar --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 --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 --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": [
"@app-phpunit-mysql57",
"@app-phpunit-mysql80"
],
"app-phpunit-mysql57": [
"@putenv XDEBUG_MODE=off",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=mysql",
"php ./vendor/phpunit/phpunit/phpunit --no-coverage --configuration test/phpunit.xml $1"
],
"app-phpunit-mysql80": [
"@putenv XDEBUG_MODE=off",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=mysql80",
"php ./vendor/phpunit/phpunit/phpunit --no-coverage --configuration test/phpunit.xml $1"
],
"app-phpunit-maria10": [
"@putenv XDEBUG_MODE=off",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=maria10",
"php ./vendor/phpunit/phpunit/phpunit --no-coverage --configuration test/phpunit.xml $1"
],
"app-phpunit-mysql57-coverage": [
"@putenv XDEBUG_MODE=coverage",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=mysql",
"php ./vendor/phpunit/phpunit/phpunit --configuration test/phpunit.xml"
],
"app-phpunit-mysql80-coverage": [
"@putenv XDEBUG_MODE=coverage",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=mysql80",
"php ./vendor/phpunit/phpunit/phpunit --configuration test/phpunit.xml"
],
"app-phpunit-maria10-coverage": [
"@putenv XDEBUG_MODE=coverage",
"@putenv PHPUNIT_MYSQL_MYDB1_HOST=maria10",
"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 XDEBUG_MODE=off",
"@putenv PHAN_DISABLE_XDEBUG_WARN=1",
"@putenv PHAN_ALLOW_XDEBUG=1",
"php ./vendor/bin/phan --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.8",
"composer/composer": "^2"
},
"require": {
"php": "^8.0 || ^8.1 || ^8.2",
"ext-mysqli": "*",
"ext-mysqlnd": "*",
"ext-pcntl": "*",
"psr/log": "^1",
"composer-plugin-api": "^2"
},
"autoload": {
"psr-4": {
"sql\\": "src/sql"
}
}
}