-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
126 lines (126 loc) · 4.85 KB
/
composer.json
File metadata and controls
126 lines (126 loc) · 4.85 KB
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
{
"name": "studio-design/openapi-contract-testing",
"description": "Framework-agnostic OpenAPI 3.0/3.1 contract testing for PHPUnit with endpoint coverage tracking",
"keywords": ["openapi", "contract-testing", "phpunit", "api-testing", "coverage"],
"license": "MIT",
"type": "library",
"require": {
"php": "^8.2",
"opis/json-schema": "^2.6",
"phpunit/phpunit": "^11.0 || ^12.0 || ^13.0",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0 || ^2.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.94",
"guzzlehttp/psr7": "^2.0",
"orchestra/testbench": "^9.0 || ^10.0 || ^11.0",
"phpstan/phpstan": "^2.1.13",
"symfony/browser-kit": "^6.4 || ^7.0 || ^8.0",
"symfony/http-foundation": "^6.4 || ^7.0 || ^8.0",
"symfony/http-kernel": "^6.4 || ^7.0 || ^8.0",
"symfony/yaml": "^6.4 || ^7.0 || ^8.0"
},
"suggest": {
"illuminate/testing": "Required for the Laravel adapter (ValidatesOpenApiSchema trait)",
"symfony/http-foundation": "Required for the Symfony adapter (OpenApiAssertions trait), which validates HttpFoundation Request / Response objects directly",
"symfony/http-kernel": "Required for the Symfony adapter's assertClientMatchesOpenApiSchema(), which reads a KernelBrowser / HttpKernelBrowser test client",
"symfony/yaml": "Required to load OpenAPI specs directly from .yaml / .yml files",
"guzzlehttp/guzzle": "A PSR-18 HTTP client implementation for resolving external HTTP(S) $refs",
"symfony/http-client": "A PSR-18 HTTP client implementation for resolving external HTTP(S) $refs",
"fakerphp/faker": "Improves the realism of inputs generated by ExploresOpenApiEndpoint (email, uuid, urls). The fuzzer falls back to deterministic primitives when not installed.",
"pestphp/pest": "Activates the Pest expectation API (toMatchOpenApiResponseSchema / toMatchOpenApiRequestSchema). Library runtime stays Pest-free; the plugin auto-loads only when Pest is installed."
},
"autoload": {
"psr-4": {
"Studio\\OpenApiContractTesting\\": "src/"
},
"files": [
"src/Pest/Autoload.php"
]
},
"bin": [
"bin/openapi-coverage-merge"
],
"autoload-dev": {
"psr-4": {
"Studio\\OpenApiContractTesting\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"pestphp/pest-plugin": true
}
},
"extra": {
"laravel": {
"providers": [
"Studio\\OpenApiContractTesting\\Laravel\\OpenApiContractTestingServiceProvider"
]
}
},
"scripts": {
"test": "phpunit",
"test:pest": [
"@php scripts/check-pest.php",
"pest --colors=always tests/Integration/Pest"
],
"stan": "phpstan analyse",
"cs": [
"php-cs-fixer fix",
"php-cs-fixer fix --config=.php-cs-fixer.pest.dist.php"
],
"cs-check": [
"php-cs-fixer fix --dry-run --diff",
"php-cs-fixer fix --dry-run --diff --config=.php-cs-fixer.pest.dist.php"
],
"ci": [
"@cs-check",
"@stan",
"@test"
]
},
"scripts-descriptions": {
"test": "Run the full PHPUnit test suite.",
"test:pest": "Run the Pest plugin test suite (requires `composer require --dev pestphp/pest:^3.0`).",
"stan": "Run PHPStan static analysis.",
"cs": "Run PHP-CS-Fixer in fix mode (rewrites files).",
"cs-check": "Run PHP-CS-Fixer in dry-run mode (CI gate).",
"ci": "Run the same checks the CI matrix runs."
},
"support": {
"issues": "https://github.com/studio-design/openapi-contract-testing/issues",
"source": "https://github.com/studio-design/openapi-contract-testing",
"docs": "https://github.com/studio-design/openapi-contract-testing#readme"
},
"archive": {
"exclude": [
"/tests",
"/examples",
"/scripts",
"/.github",
"/.markdownlint.jsonc",
"/.php-cs-fixer.dist.php",
"/.php-cs-fixer.pest.dist.php",
"/.php-cs-fixer.shared.php",
"/.php-cs-fixer.cache",
"/.php-cs-fixer.pest.cache",
"/.phpstan.cache",
"/.phpunit.cache",
"/phpstan.neon.dist",
"/phpunit.xml.dist",
"/CLAUDE.md",
"/CONTRIBUTING.md",
"/UPGRADING.md",
"/SECURITY.md",
"/draft-zenn-article.md",
"/renovate.json",
"/images"
]
},
"minimum-stability": "stable",
"prefer-stable": true
}