-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
90 lines (90 loc) · 2.51 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
{
"name": "onebot/libonebot",
"description": "PHP 的 LibOneBot 库,通过此库可快速接入 OneBot 生态",
"license": "MIT",
"type": "library",
"keywords": [
"php",
"libonebot",
"onebot",
"starter"
],
"authors": [
{
"name": "crazywhalecc",
"email": "[email protected]"
},
{
"name": "sunxyw",
"email": "[email protected]"
}
],
"homepage": "https://github.com/botuniverse/php-libonebot",
"support": {
"issues": "https://github.com/botuniverse/php-libonebot/issues",
"wiki": "https://github.com/botuniverse/php-libonebot/wiki"
},
"require": {
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2",
"ext-json": "*",
"psr/cache": "^1.0",
"psr/event-dispatcher": "^1.0",
"psr/log": "^1.1",
"rybakit/msgpack": "^0.9.0",
"choir/psr-http": "^1.0",
"workerman/workerman": "^4.0",
"zhamao/logger": "^1.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8",
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/phpstan": "^1.1",
"phpunit/phpunit": "^9.0 || ^8.0",
"swoole/ide-helper": "~4.4.0",
"symfony/var-dumper": "^5.3"
},
"suggest": {
"nunomaduro/collision": "Better display for exception and error message",
"symfony/var-dumper": "Better display for `ob_dump()` global debug function"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"OneBot\\": "src/OneBot"
},
"files": [
"src/OneBot/global_defines.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
}
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"extra": {
"hooks": {
"post-merge": "composer install",
"pre-commit": [
"echo committing as $(git config user.name)",
"composer cs-fix -- --diff"
],
"pre-push": [
"composer cs-fix -- --dry-run --diff",
"composer analyse"
]
}
},
"scripts": {
"post-install-cmd": [
"[ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/cghooks add"
],
"analyse": "phpstan analyse --memory-limit 300M",
"cs-fix": "php-cs-fixer fix",
"test": "phpunit --no-coverage"
}
}