-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
composer.json
210 lines (210 loc) · 7.98 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
"name": "guanguans/laravel-soar",
"description": "SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。",
"license": "MIT",
"type": "laravel",
"keywords": [
"soar",
"SQL",
"sql",
"mysql",
"debug",
"laravel",
"statement",
"重写器",
"优化器",
"rewriter",
"optimizer",
"optimize",
"rewrite",
"clockwork",
"console",
"debugbar",
"dump",
"log",
"errorlog",
"syslog",
"ray"
],
"authors": [
{
"name": "guanguans",
"email": "[email protected]"
}
],
"support": {
"issues": "https://github.com/guanguans/laravel-soar/issues",
"source": "https://github.com/guanguans/laravel-soar"
},
"funding": [
{
"type": "wechat",
"url": "https://www.guanguans.cn/images/wechat.jpeg"
}
],
"require": {
"php": ">=7.4",
"ext-json": "*",
"ext-pdo": "*",
"guanguans/soar-php": "^4.2",
"illuminate/support": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"maximebf/debugbar": "^1.22"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
"barryvdh/laravel-debugbar": "^3.7",
"brainmaestro/composer-git-hooks": "^2.8 || ^3.0",
"ergebnis/composer-normalize": "^2.43",
"friendsofphp/php-cs-fixer": "^3.62",
"guanguans/ai-commit": "dev-main",
"guanguans/monorepo-builder-worker": "^1.4",
"itsgoingd/clockwork": "^5.2",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.21",
"laravel/legacy-factories": "^1.4",
"mockery/mockery": "^1.6",
"orchestra/testbench": "^6.45 || ^7.0 || ^8.0 || ^9.0",
"pestphp/pest": "^1.23 || ^2.0",
"pestphp/pest-plugin-faker": "^1.0 || ^2.0",
"pestphp/pest-plugin-laravel": "^1.2 || ^2.0",
"php-mock/php-mock-phpunit": "^2.10",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-deprecation-rules": "^1.2",
"rector/rector": "^1.2",
"spatie/pest-plugin-snapshots": "^1.1 || ^2.0",
"spatie/ray": "^1.41",
"vimeo/psalm": "^5.25"
},
"suggest": {
"barryvdh/laravel-debugbar": "Output SQL scores to Laravel DebugBar.",
"itsgoingd/clockwork": "Output SQL scores to Clockwork.",
"laradumps/laradumps": "Output SQL scores to Laradumps.",
"spatie/ray": "Output SQL scores to Spatie Ray."
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Guanguans\\LaravelSoar\\": "src"
},
"files": [
"src/Support/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true,
"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": false,
"forward-command": true,
"target-directory": "vendor-bin"
},
"branch-alias": {
"dev-master": "3.x-dev"
},
"hooks": {
"post-merge": [
"composer checks"
],
"pre-commit": [
"composer checks"
]
},
"laravel": {
"aliases": {
"Soar": "Guanguans\\LaravelSoar\\Facades\\Soar"
},
"providers": [
"Guanguans\\LaravelSoar\\SoarServiceProvider"
]
},
"phpstan": {
"includes": []
}
},
"scripts": {
"post-install-cmd": [
"@cghooks add --ignore-lock",
"@cghooks update"
],
"post-update-cmd": [
"@cghooks update"
],
"ai-commit": "@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=5 --ansi -v",
"cghooks": "@php ./vendor/bin/cghooks --ansi -v",
"checks": [
"@composer-normalize",
"@composer-validate",
"@md-lint",
"@yaml-lint",
"@lint",
"@style-lint",
"@test",
"@psalm",
"@rector-dry-run"
],
"checks-parallel": "@composer-parallel composer-validate md-lint lint style-lint test psalm",
"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-parallel": "@composer parallel --ansi -v",
"composer-unused": "@php ./vendor/bin/composer-unused --ansi -v",
"composer-updater": "@php ./composer-updater --highest-php-binary=/opt/homebrew/opt/[email protected]/bin/php --except-packages=pestphp/pest-plugin-laravel --ansi",
"composer-updater-dry-run": "@composer-updater --dry-run",
"composer-validate": "@composer validate --check-lock --strict --ansi -v",
"facade-lint": "@facade-update --lint",
"facade-update": "/opt/homebrew/opt/[email protected]/bin/php -f ./facade.php -- Guanguans\\\\LaravelSoar\\\\Facades\\\\Soar",
"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 /opt/homebrew/opt/[email protected]/bin/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 /opt/homebrew/opt/[email protected]/bin/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 --coverage",
"pest-migrate-configuration": "@pest --migrate-configuration",
"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": "@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 --config=.php-cs-fixer.php --show-progress=dots --diff --ansi -v",
"style-lint": "@style-fix --diff --dry-run",
"test": "@pest",
"test-coverage": "@pest-coverage",
"test-migrate-configuration": "@pest-migrate-configuration",
"yaml-lint": "@php ./vendor/bin/yaml-lint .github --ansi -v"
}
}