-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
149 lines (141 loc) · 4.83 KB
/
composer.json
File metadata and controls
149 lines (141 loc) · 4.83 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"_comment": "AUTO-GENERATED FILE - DO NOT EDIT. Manual changes will be overwritten, please update `templates/php/libraries/psr-18/composer.mustache` file and regenerate files",
"name": "upsun/upsun-sdk-php",
"type": "library",
"description": "The official Upsun SDK for PHP",
"keywords": [
"upsun",
"php",
"sdk",
"api"
],
"homepage": "https://github.com/upsun/upsun-sdk-php",
"license": "MIT",
"authors": [
{
"name": "Florent HUCK",
"email": "florent.huck@upsun.com"
},
{
"name": "Mickael GAILLARD",
"email": "mickael.gaillard@upsun.com"
},
{
"name": "Upsun Advocacy Team",
"homepage": "https://www.upsun.com"
}
],
"require": {
"php": ">=8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/psr7": "^1.8 || ^2.0",
"php-http/async-client-implementation": "^1.0",
"php-http/client-common": "^2.4",
"php-http/discovery": "^1.14",
"php-http/httplug": "^2.2",
"symfony/http-client": "^6.3|^7",
"psr/http-client-implementation": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-factory-implementation": "^1.0",
"psr/http-message": "^1.0",
"nyholm/psr7": "^1.8"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.89",
"guzzlehttp/guzzle": "^7.0",
"php-http/guzzle7-adapter": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"rector/rector": "*",
"squizlabs/php_codesniffer": "^3.13",
"slevomat/coding-standard": "^8.22",
"phpdocumentor/shim": "^3.8",
"nikic/php-parser": "^5.6"
},
"config": {
"allow-plugins": {
"php-http/discovery": false,
"dealerdirect/phpcodesniffer-composer-installer": false,
"phpdocumentor/shim": true
}
},
"autoload": {
"psr-4": {
"Upsun\\" : "src/",
"Upsun\\Coverage\\": "templates/Coverage/"
}
},
"autoload-dev": {
"psr-4": {
"Upsun\\Tests\\" : "tests/"
}
},
"prefer-stable": true,
"scripts": {
"install:ci": "composer install --prefer-dist --no-progress --no-interaction",
"lint:phpcs": "./vendor/bin/phpcs --standard=phpcs.xml src/",
"lint:phpcs:tests": "./vendor/bin/phpcs --standard=phpcs.xml tests/",
"lint:rector": "./vendor/bin/rector process src --dry-run",
"lint:rector:tests": "./vendor/bin/rector process tests --dry-run",
"lint:php-cs-fixer": "./vendor/bin/php-cs-fixer fix --dry-run --diff",
"fix:phpcbf": "./vendor/bin/phpcbf --standard=phpcs.xml src/ || true",
"fix:phpcbf:tests": "./vendor/bin/phpcbf --standard=phpcs.xml tests/ || true",
"fix:rector": "./vendor/bin/rector process src || true",
"fix:rector:tests": "./vendor/bin/rector process tests || true",
"fix:php-cs-fixer": "./vendor/bin/php-cs-fixer fix || true",
"test:unit": "./vendor/bin/phpunit --testsuite=default",
"test:coverage": "./vendor/bin/phpunit --coverage-text",
"test:coverage:html": "./vendor/bin/phpunit --coverage-html coverage",
"test:coverage:ci": "./vendor/bin/phpunit --coverage-clover=coverage.xml",
"spec:clean": "rm -Rf src/Api/* ; rm -Rf src/Model/* ; rm -Rf docs/*",
"spec:dl": "wget -O ./schema/openapispec-upsun.json 'https://meta.upsun.com/openapi-spec?sdks=true'",
"spec:generate:install": "npm install -g @openapitools/openapi-generator-cli",
"spec:generate": "npx openapi-generator-cli generate -c templates/config.yaml",
"doc:generate:md": "vendor/bin/phpdoc -c phpdoc.markdown.xml",
"doc:generate:html": "vendor/bin/phpdoc -c phpdoc.html.xml",
"spec:full": [
"@spec:clean",
"@spec:dl",
"@spec:generate",
"@fix:all"
],
"lint": [
"@lint:phpcs",
"@lint:rector",
"@lint:php-cs-fixer"
],
"lint:all": [
"@lint:phpcs",
"@lint:phpcs:tests",
"@lint:rector",
"@lint:rector:tests",
"@lint:php-cs-fixer"
],
"fix": [
"@fix:phpcbf",
"@fix:rector",
"@fix:php-cs-fixer"
],
"fix:all": [
"@fix:phpcbf",
"@fix:phpcbf:tests",
"@fix:rector",
"@fix:rector:tests",
"@fix:php-cs-fixer"
],
"test": "@test:unit",
"qa": [
"@lint:all",
"@test:unit"
],
"qa:full": [
"@fix:all",
"@lint:all",
"@test:coverage"
],
"doc:full": [
"@doc:generate:md"
]
}
}