forked from pact-foundation/pact-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
156 lines (156 loc) · 7.3 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
154
155
156
{
"name": "pact-foundation/pact-php",
"keywords": [
"pact",
"pact-php"
],
"homepage": "https://github.com/pact-foundation/pact-php",
"description": "Enables consumer driven contract testing, following the PACT foundation principles.",
"license": "MIT",
"authors": [
{
"name": "Mattermack",
"email": "c.f.mack@gmail.com"
},
{
"name": "Nicholas Brink",
"email": "nick.brink@mattersight.com"
}
],
"require": {
"php": "^8.1",
"ext-openssl": "*",
"ext-ffi": "*",
"ext-json": "*",
"composer/semver": "^1.4.0|^3.2.0",
"symfony/process": "^5.4|^6.0|^7.0",
"guzzlehttp/psr7": "^2.4.5",
"pact-foundation/composer-downloads-plugin": "^2.1"
},
"require-dev": {
"ext-sockets": "*",
"roave/security-advisories": "dev-latest",
"slim/slim": "^4.13",
"friendsofphp/php-cs-fixer": "^3.0",
"php-amqplib/php-amqplib": "^3.0",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^10.1|^11",
"guzzlehttp/guzzle": "^7.8",
"behat/behat": "^3.13",
"galbar/jsonpath": "^3.0",
"ramsey/uuid": "^4.7",
"pact-foundation/example-protobuf-sync-message-provider": "@dev"
},
"autoload": {
"psr-4": {
"PhpPact\\": "src/PhpPact"
}
},
"autoload-dev": {
"psr-4": {
"PhpPactTest\\": "tests/PhpPact",
"PhpPactTest\\CompatibilitySuite\\": "compatibility-suite/tests",
"JsonConsumer\\": "example/json/consumer/src",
"JsonConsumer\\Tests\\": "example/json/consumer/tests",
"JsonProvider\\": "example/json/provider/src",
"JsonProvider\\Tests\\": "example/json/provider/tests",
"MessageConsumer\\": "example/message/consumer/src",
"MessageConsumer\\Tests\\": "example/message/consumer/tests",
"MessageProvider\\": "example/message/provider/src",
"MessageProvider\\Tests\\": "example/message/provider/tests",
"BinaryConsumer\\": "example/binary/consumer/src",
"BinaryConsumer\\Tests\\": "example/binary/consumer/tests",
"BinaryProvider\\": "example/binary/provider/src",
"BinaryProvider\\Tests\\": "example/binary/provider/tests",
"MultipartConsumer\\": "example/multipart/consumer/src",
"MultipartConsumer\\Tests\\": "example/multipart/consumer/tests",
"MultipartProvider\\": "example/multipart/provider/src",
"MultipartProvider\\Tests\\": "example/multipart/provider/tests",
"XmlConsumer\\": "example/xml/consumer/src",
"XmlConsumer\\Tests\\": "example/xml/consumer/tests",
"XmlProvider\\": "example/xml/provider/src",
"XmlProvider\\Tests\\": "example/xml/provider/tests",
"MatchersConsumer\\": "example/matchers/consumer/src",
"MatchersConsumer\\Tests\\": "example/matchers/consumer/tests",
"MatchersProvider\\Tests\\": "example/matchers/provider/tests",
"GeneratorsConsumer\\": "example/generators/consumer/src",
"GeneratorsConsumer\\Tests\\": "example/generators/consumer/tests",
"GeneratorsProvider\\Tests\\": "example/generators/provider/tests",
"CsvConsumer\\": "example/csv/consumer/src",
"CsvConsumer\\Tests\\": "example/csv/consumer/tests",
"CsvProvider\\": "example/csv/provider/src",
"CsvProvider\\Tests\\": "example/csv/provider/tests",
"": [
"example/protobuf-sync-message/library/src",
"example/protobuf-async-message/library/src"
],
"ProtobufSyncMessageConsumer\\": "example/protobuf-sync-message/consumer/src",
"ProtobufSyncMessageConsumer\\Tests\\": "example/protobuf-sync-message/consumer/tests",
"ProtobufSyncMessageProvider\\": "example/protobuf-sync-message/provider/src",
"ProtobufSyncMessageProvider\\Tests\\": "example/protobuf-sync-message/provider/tests",
"ProtobufAsyncMessageConsumer\\": "example/protobuf-async-message/consumer/src",
"ProtobufAsyncMessageConsumer\\Tests\\": "example/protobuf-async-message/consumer/tests",
"ProtobufAsyncMessageProvider\\Tests\\": "example/protobuf-async-message/provider/tests",
"StubServerConsumer\\": "example/stub-server/consumer/src",
"StubServerConsumer\\Tests\\": "example/stub-server/consumer/tests"
}
},
"scripts": {
"start-provider": "echo 'removed in 10.x' & exit 1",
"static-code-analysis": "phpstan",
"lint": "php-cs-fixer fix --dry-run",
"fix": "php-cs-fixer fix",
"test": [
"php -r \"array_map('unlink', glob('./example/*/pacts/*.json'));\" --",
"phpunit --no-coverage"
],
"gen-lib": [
"protoc --php_out=example/protobuf-sync-message/library/src example/protobuf-sync-message/library/proto/area_calculator.proto",
"protoc --php_out=example/protobuf-async-message/library/src example/protobuf-async-message/library/proto/say_hello.proto"
],
"check-compatibility": "behat"
},
"extra": {
"downloads": {
"pact-ffi-headers": {
"version": "0.4.21",
"url": "https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v{$version}/pact.h",
"path": "bin/pact-ffi-headers/pact.h"
},
"pact-ffi-lib": {
"version": "0.4.21",
"variables": {
"{$prefix}": "PHP_OS_FAMILY === 'Windows' ? 'pact_ffi' : 'libpact_ffi'",
"{$os}": "PHP_OS === 'Darwin' ? 'macos' : strtolower(PHP_OS_FAMILY)",
"{$architecture}": "in_array(php_uname('m'), ['arm64', 'aarch64']) ? 'aarch64' : 'x86_64'",
"{$musl}": "PHP_OS === 'Linux' && musl() === true ? '-musl' : ''",
"{$extension}": "PHP_OS_FAMILY === 'Windows' ? 'dll' : (PHP_OS === 'Darwin' ? 'dylib' : 'so')"
},
"url": "https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v{$version}/{$prefix}-{$os}-{$architecture}{$musl}.{$extension}.gz",
"path": "bin/pact-ffi-lib/pact.{$extension}"
},
"pact-stub-server": {
"version": "0.6.0",
"variables": {
"{$os}": "PHP_OS === 'Darwin' ? 'osx' : strtolower(PHP_OS_FAMILY)",
"{$architecture}": "in_array(php_uname('m'), ['arm64', 'aarch64']) ? 'aarch64' : 'x86_64'",
"{$extension}": "PHP_OS_FAMILY === 'Windows' ? '.exe' : ''"
},
"url": "https://github.com/pact-foundation/pact-stub-server/releases/download/v{$version}/pact-stub-server-{$os}-{$architecture}{$extension}.gz",
"path": "bin/pact-stub-server/pact-stub-server{$extension}",
"executable": true
}
}
},
"config": {
"allow-plugins": {
"pact-foundation/composer-downloads-plugin": true
}
},
"repositories": [
{
"type": "path",
"url": "example/protobuf-sync-message/provider"
}
]
}