-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
composer.json
58 lines (58 loc) · 1.63 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
{
"name": "hyperf/gotask",
"type": "library",
"license": "MIT",
"keywords": [
"php",
"hyperf"
],
"description": "A replacement for Swoole TaskWorker in Go",
"autoload": {
"psr-4": {
"Hyperf\\GoTask\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"HyperfTest\\": "tests"
}
},
"require": {
"php": ">=8.1",
"ext-swoole": ">=5.0",
"hyperf/pool": "^3.0",
"hyperf/process": "^3.0",
"spiral/goridge": "^2.4",
"symfony/event-dispatcher": "^6.3"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.21",
"hyperf/command": "^3.0",
"hyperf/config": "^3.0",
"hyperf/di": "^3.0",
"hyperf/framework": "^3.0",
"hyperf/testing": "^3.0",
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^1.10",
"swoole/ide-helper": "^5.0"
},
"config": {
"sort-packages": true
},
"scripts": {
"test": "go build -o app example/*.go && go build -o mongo example/mongo_client/*.go && phpunit -c phpunit.xml --colors=always",
"start-test-server": "php tests/TestServer.php",
"test-go": "/bin/bash -c 'php tests/TestServer.php & sleep 5 && go test ./...'",
"analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1",
"binary": "go build -o mongo example/mongo_client/*.go"
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
},
"hyperf": {
"config": "Hyperf\\GoTask\\ConfigProvider"
}
}
}