-
Notifications
You must be signed in to change notification settings - Fork 3
/
composer.json
65 lines (65 loc) · 1.61 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
{
"name": "streamcommon/promise",
"description": "PHP-CLI promise implementation",
"license": "BSD-3-Clause",
"type": "library",
"keywords": [
"streamcommon",
"php promise"
],
"require": {
"php": "^7.3",
"doctrine/collections": "^1.6.4"
},
"require-dev": {
"ext-pcov": "^1.0.0",
"ext-swoole": "^4.2.13",
"streamcommon/coding-standard": "dev-master",
"malukenho/docheader": "^0.1.8",
"phpstan/phpstan": "^0.12.19",
"phpunit/phpunit": "^9.1.3",
"php-coveralls/php-coveralls": "^2.2.0",
"ocramius/package-versions": "^1.5.1",
"brainmaestro/composer-git-hooks": "^2.8.3"
},
"suggest": {
"ext-swoole": "Install extension(^4.2.13) for using ExtSwoolePromise"
},
"autoload": {
"psr-4": {
"Streamcommon\\Promise\\": "lib/"
},
"files": [
"compatibility.php"
]
},
"autoload-dev": {
"psr-4": {
"Streamcommon\\Test\\Promise\\": "test/"
}
},
"extra": {
"hooks": {
"pre-commit": [
"composer cs-fix"
],
"pre-push": [
"composer license-check",
"composer cs-check",
"composer phpstan",
"composer phpunit"
]
}
},
"scripts": {
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update",
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"license-check": "docheader check lib/ test/ example/",
"phpstan": "phpstan analyze -c phpstan.neon ./lib ./example",
"phpunit": "phpunit --colors=always",
"phpunit-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"coveralls": "php-coveralls -v"
}
}