-
Notifications
You must be signed in to change notification settings - Fork 21
/
composer.json
84 lines (84 loc) · 3.36 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
{
"name": "cloudevents/sdk-php",
"description": "CloudEvents SDK",
"type": "library",
"license": "Apache-2.0",
"support": {
"issues": "https://github.com/cloudevents/sdk-php/issues",
"source": "https://github.com/cloudevents/sdk-php"
},
"autoload": {
"psr-4": {
"CloudEvents\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"require": {
"php": "^7.4.15 || ^8.0.2",
"ext-json": "*",
"ext-pcre": "*",
"symfony/polyfill-php80": "^1.26"
},
"require-dev": {
"guzzlehttp/psr7": "^2.4.3",
"php-http/discovery": "^1.15.2",
"phpunit/phpunit": "^9.6.3 || ^10.0.12",
"psalm/phar": "5.7.6",
"psr/http-factory": "^1.0.1",
"psr/http-message": "^1.0.1",
"squizlabs/php_codesniffer": "3.7.2"
},
"suggest": {
"php-http/discovery": "Required for automatic discovery of HTTP message factories in the HTTP Marshaller.",
"psr/http-factory": "Required for use of the HTTP Marshaller.",
"psr/http-factory-implementation": "Required for use of the HTTP Marshaller.",
"psr/http-message": "Required for use of the HTTP Marshaller and Unmarshaller.",
"psr/http-message-implementation": "Required for use of the HTTP Marshaller and Unmarshaller."
},
"scripts": {
"lint": "./vendor/bin/phpcs -n --standard=PSR12 ./src ./tests",
"lint-fix": "./vendor/bin/phpcbf -n --standard=PSR12 ./src ./tests",
"tests": "./vendor/bin/phpunit",
"sa": "./vendor/bin/psalm.phar",
"tests-build": [
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:7.4-tests -f hack/7.4.Dockerfile hack",
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.0-tests -f hack/8.0.Dockerfile hack",
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.1-tests -f hack/8.1.Dockerfile hack",
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.2-tests -f hack/8.2.Dockerfile hack",
"DOCKER_BUILDKIT=1 docker build -t cloudevents/sdk-php:8.3-tests -f hack/8.3.Dockerfile hack"
],
"tests-docker": [
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:7.4-tests --coverage-html=coverage",
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.0-tests",
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.1-tests",
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.2-tests",
"docker run -it -v $(pwd):/var/www cloudevents/sdk-php:8.3-tests"
]
},
"scripts-descriptions": {
"lint": "Show all current linting errors according to PSR12",
"lint-fix": "Show and fix all current linting errors according to PSR12",
"sa": "Run the static analyzer",
"tests": "Run all tests locally",
"tests-build": "Build containers to test against supported PHP versions",
"tests-docker": "Run tests within supported PHP version containers"
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true
}
},
"extra": {
"branch-alias": {
"dev-main": "1.1-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}