-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
composer.json
196 lines (196 loc) · 7.65 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "guanguans/soar-php",
"description": "SQL optimizer and rewriter. - SQL 优化器、重写器。",
"license": "MIT",
"type": "library",
"keywords": [
"soar",
"sql",
"mysql",
"sql optimizer",
"sql rewriter",
"optimizer",
"rewriter",
"debug"
],
"authors": [
{
"name": "guanguans",
"email": "ityaozm@gmail.com"
}
],
"support": {
"issues": "https://github.com/guanguans/soar-php/issues",
"source": "https://github.com/guanguans/soar-php"
},
"funding": [
{
"type": "wechat",
"url": "https://www.guanguans.cn/images/wechat.jpeg"
}
],
"require": {
"php": ">=7.3",
"ext-json": "*",
"ext-mbstring": "*",
"symfony/process": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8 || ^3.0",
"composer/composer": "^2.8",
"ergebnis/composer-normalize": "^2.20",
"friendsofphp/php-cs-fixer": "^3.4",
"guanguans/ai-commit": "dev-main",
"guanguans/monorepo-builder-worker": "^1.4",
"jetbrains/phpstorm-attributes": "^1.1",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.7",
"mockery/mockery": "^1.6",
"pestphp/pest": "^1.23 || ^2.0 || ^3.0",
"pestphp/pest-plugin-faker": "^1.0 || ^2.0 || ^3.0",
"php-mock/php-mock-phpunit": "^2.10",
"phpbench/phpbench": "^1.2",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"rector/rector": "^1.2",
"spatie/phpunit-snapshot-assertions": "^4.2 || ^5.0",
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0",
"vimeo/psalm": "^4.30 || ^5.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Guanguans\\SoarPHP\\": "src"
},
"files": [
"src/Support/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Guanguans\\SoarPHPTests\\": "tests"
}
},
"bin": [
"bin/soar.darwin-amd64",
"bin/soar.darwin-arm64",
"bin/soar.linux-amd64",
"bin/soar.linux-arm64",
"bin/soar.windows-amd64"
],
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true
},
"apcu-autoloader": true,
"classmap-authoritative": false,
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true,
"target-directory": "vendor-bin"
},
"branch-alias": {
"dev-master": "4.x-dev"
},
"hooks": {
"post-merge": [
"composer checks"
],
"pre-commit": [
"composer checks"
]
},
"phpstan": {
"includes": []
}
},
"scripts": {
"post-install-cmd": [
"@cghooks add --ignore-lock",
"@cghooks update"
],
"post-update-cmd": [
"@cghooks update"
],
"ai-commit": "/opt/homebrew/opt/php@7.3/bin/php ./vendor/bin/ai-commit commit --generator=bito_cli --ansi",
"ai-commit-no-verify": "@ai-commit --commit-options=--no-verify",
"benchmark": "@php ./vendor/bin/phpbench run --warmup=1 --retry-threshold=1 --iterations=3 --revs=10 --report=default --ansi -v",
"cghooks": "@php ./vendor/bin/cghooks --ansi -v",
"checks": [
"@composer-normalize",
"@composer-validate",
"@json-lint",
"@md-lint",
"@yaml-lint",
"@lint",
"@style-lint",
"@test",
"@psalm",
"@rector-dry-run"
],
"composer-bin-all-update": "@composer bin all update --ansi -v",
"composer-check-platform-reqs": "@composer check-platform-reqs --lock --ansi -v",
"composer-normalize": "@composer normalize --dry-run --diff --ansi -v",
"composer-unused": "@php ./vendor/bin/composer-unused --ansi -v",
"composer-updater": [
"Composer\\Config::disableProcessTimeout",
"@php ./composer-updater --highest-php-binary=/opt/homebrew/opt/php@8.3/bin/php --ansi"
],
"composer-validate": "@composer validate --check-lock --strict --ansi -v",
"dump-soar": [
"@dump-soar-docblock",
"@dump-soar-php-config",
"@dump-soar-yaml-config"
],
"dump-soar-docblock": "Guanguans\\SoarPHP\\Support\\ComposerScript::dumpSoarDocblock",
"dump-soar-php-config": "Guanguans\\SoarPHP\\Support\\ComposerScript::dumpSoarConfig",
"dump-soar-yaml-config": "./bin/soar.darwin-amd64 -print-config -verbose > examples/soar.options.example.yaml",
"json-lint": "@php ./vendor/bin/jsonlint *.json .*rc",
"lint": [
"for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done",
"for DIR in ./src ./tests; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec php -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done"
],
"mark-finish": "printf '\\n!\\n!\\t\\033[0;32m%s\\033[0m\\n!\\n\\n' \"Finished\"",
"mark-separate": "printf '\\n!\\n!\\t\\033[0;33m%s\\033[0m\\n!\\n\\n' \"----------------\"",
"mark-start": "printf '\\n!\\n!\\t\\033[0;36m%s\\033[0m\\n!\\n\\n' \"Started\"",
"md-fix": "@md-lint --fix",
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
"pest": "@php ./vendor/bin/pest --coverage",
"pest-coverage": "@pest --coverage-html=./build/phpunit/ --coverage-clover=./clover.xml",
"pest-migrate-configuration": "@pest --migrate-configuration",
"pest-update-snapshots": "@pest -d --update-snapshots",
"phpstan": "@php ./vendor/bin/phpstan analyse --ansi -v",
"phpstan-baseline": "@phpstan --generate-baseline --allow-empty-baseline",
"post-merge": [
"composer install --ansi -v"
],
"psalm": "@php ./vendor/bin/psalm",
"psalm-baseline": "@psalm --update-baseline",
"rector": "@php ./vendor/bin/rector --ansi -v",
"rector-dry-run": "@rector --dry-run",
"release": "/opt/homebrew/opt/php@7.3/bin/php ./vendor/bin/monorepo-builder release --ansi -v",
"release-major": "@release major",
"release-major-dry-run": "@release-major --dry-run",
"release-minor": "@release minor",
"release-minor-dry-run": "@release-minor --dry-run",
"release-patch": "@release patch",
"release-patch-dry-run": "@release-patch --dry-run",
"style-fix": "@php ./vendor/bin/php-cs-fixer fix --using-cache=yes --config=.php-cs-fixer.php --diff --ansi -v",
"style-lint": "@style-fix --dry-run",
"test": "@pest",
"test-coverage": "@pest-coverage",
"test-migrate-configuration": "@pest-migrate-configuration",
"test-phpunit": "@php ./vendor/bin/phpunit --cache-result-file=./build/phpunit/.phpunit.result.cache --coverage-text --ansi -v",
"test-phpunit-coverage": "@test --coverage-html=./build/phpunit/ --coverage-clover=clover.xml",
"test-update-snapshots": "@pest-update-snapshots",
"yaml-lint": "@php ./vendor/bin/yaml-lint .github/ examples/ --ansi -v"
}
}