-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
composer.json
153 lines (153 loc) · 6.53 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
{
"name": "imiphp/imi",
"type": "library",
"license": "MulanPSL-2.0",
"description": "imi 是一款支持长连接微服务分布式的 PHP 开发框架,可在 PHP-FPM、Swoole、Workerman 和 RoadRunner 等多种容器环境下运行。它支持 HttpApi、WebSocket、TCP、UDP、MQTT 服务的开发。",
"require": {
"php": ">=8.1",
"ext-json": "*",
"composer-runtime-api": "^2.0",
"monolog/monolog": "~3.0",
"phpdocumentor/reflection-docblock": "~5.3",
"psr/container": "~2.0",
"psr/http-message": "~1.1|~2.0",
"psr/http-server-middleware": "~1.0",
"psr/log": "~2.0|~3.0",
"psr/simple-cache": "~2.0|~3.0",
"symfony/console": "^5.1|^6.0",
"symfony/event-dispatcher": "^5.1|^6.0",
"symfony/polyfill-php81": "^1.23",
"symfony/polyfill-php82": "^1.26",
"symfony/process": "^5.1|^6.0",
"vlucas/phpdotenv": "~5.5"
},
"require-dev": {
"composer/semver": "^3.3.2",
"php-cs-fixer/shim": "~3.35.1",
"phpstan/phpstan": "~1.10.39",
"phpunit/phpunit": "~10.4",
"rector/rector": "~0.19.0",
"symfony/polyfill-uuid": "^1.27",
"yurunsoft/ide-helper": "~1.0",
"yurunsoft/yurun-http": "^5.0.0"
},
"replace": {},
"autoload": {
"psr-4": {
"Imi\\": "src/"
},
"files": [
"src/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Imi\\Dev\\": "dev/",
"Imi\\Test\\": "tests/unit/",
"Imi\\Test\\Unused\\": [
"tests/unit/unused1",
"tests/unit/unused2"
],
"Test\\": "tests/unit/Component/App"
},
"files": [
"dev/bootstrap.php",
"tests/helper.php",
"src/Components/model/vendor/autoload.php"
]
},
"suggest": {
"ext-inotify": "高性能热更新支持",
"ext-pdo": "数据库操作支持",
"symfony/polyfill-uuid": "模型 uuid 发号器依赖",
"ext-uuid": "模型 uuid 发号器依赖"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"yurunsoft/ide-helper": true
},
"platform-check": false
},
"bin": [
"src/Cli/bin/imi-cli"
],
"scripts": {
"post-autoload-dump": [
"@composer install-components"
],
"install-components": "Imi\\Dev\\Plugin::dev",
"generate-ide-helper": "Imi\\Dev\\Plugin::IDEHelper",
"test": "@php -dapc.enable_cli=1 vendor/bin/phpunit -c ./tests/phpunit.xml",
"test-coverage": [
"Composer\\Config::disableProcessTimeout",
"./dev/test-coverage.sh"
],
"install-test": "@php --ri swoole && composer install && cd ../ && composer test",
"test-swoole": "@php src/Components/swoole/bin/swoole-phpunit -c src/Components/swoole/tests/phpunit.xml",
"test-workerman": "@php vendor/bin/phpunit -c src/Components/workerman/tests/phpunit.xml",
"test-workerman-gateway-w": "@php vendor/bin/phpunit -c src/Components/workerman-gateway/tests/phpunit.xml --testsuite workerman",
"test-workerman-gateway-s": "@php vendor/bin/phpunit -c src/Components/workerman-gateway/tests/phpunit.xml --testsuite swoole",
"test-workerman-gateway": [
"@composer test-workerman-gateway-w",
"@composer test-workerman-gateway-s"
],
"test-roadrunner": "@php vendor/bin/phpunit -c src/Components/roadrunner/tests/phpunit.xml",
"test-fpm": "@php vendor/bin/phpunit -c src/Components/fpm/tests/phpunit.xml",
"test-jwt": "@php vendor/bin/phpunit -c src/Components/jwt/tests/phpunit.xml",
"test-queue": "@php src/Components/swoole/bin/swoole-phpunit -c src/Components/queue/tests/phpunit.xml",
"test-amqp": [
"AMQP_TEST_MODE=swoole php src/Components/swoole/bin/swoole-phpunit -c src/Components/amqp/tests/phpunit.xml",
"AMQP_TEST_MODE=workerman php src/Components/swoole/bin/swoole-phpunit -c src/Components/amqp/tests/phpunit.xml"
],
"test-kafka": [
"KAFKA_TEST_MODE=swoole php src/Components/swoole/bin/swoole-phpunit -c src/Components/kafka/tests/phpunit.xml",
"KAFKA_TEST_MODE=workerman php src/Components/swoole/bin/swoole-phpunit -c src/Components/kafka/tests/phpunit.xml"
],
"test-grpc": "@php src/Components/swoole/bin/swoole-phpunit -c src/Components/grpc/tests/phpunit.xml",
"test-snowflake": "@php vendor/bin/phpunit -c src/Components/snowflake/tests/phpunit.xml",
"test-mqtt": "@php src/Components/swoole/bin/swoole-phpunit -c src/Components/mqtt/tests/phpunit.xml",
"test-smarty": "@php vendor/bin/phpunit -c src/Components/smarty/tests/phpunit.xml",
"test-pgsql": "@php src/Components/swoole/bin/swoole-phpunit -c src/Components/pgsql/tests/phpunit.xml",
"test-phar": "@php src/Components/phar/tests/run-tests.php",
"test-connection-center-common": "@php vendor/bin/phpunit -c src/Components/connection-center/tests/phpunit.xml",
"test-connection-center-swoole": "CONNECTION_CENTER_TEST_MODE=swoole php src/Components/swoole/bin/swoole-phpunit -c src/Components/connection-center/tests/phpunit.xml",
"test-connection-center": [
"@composer test-connection-center-common",
"@composer test-connection-center-swoole"
],
"test-database": "@php vendor/bin/phpunit -c src/Components/database/tests/phpunit.xml",
"test-model": "@php vendor/bin/phpunit -c src/Components/model/tests/phpunit.xml",
"test-components": [
"@composer test-swoole",
"@composer test-workerman",
"@composer test-workerman-gateway",
"@composer test-fpm",
"@composer test-jwt",
"@composer test-queue",
"@composer test-amqp",
"@composer test-kafka",
"@composer test-grpc",
"@composer test-snowflake",
"@composer test-mqtt",
"@composer test-smarty",
"@composer test-pgsql",
"@composer test-phar",
"@composer test-connection-center",
"@composer test-database",
"@composer test-model"
]
},
"extra": {
"ide-helper": {
"list": [
"redis",
"inotify",
"swoole_postgresql",
"apcu"
]
}
}
}