Skip to content

Commit 7dcd982

Browse files
Merge pull request #47 from WordPress/add-http-client-and-auth
2 parents 2687daa + dba6a00 commit 7dcd982

18 files changed

+2997
-40
lines changed

composer.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@
2121
},
2222
"require": {
2323
"php": ">=7.4",
24-
"ext-json": "*"
24+
"ext-json": "*",
25+
"php-http/discovery": "^1.0",
26+
"php-http/httplug": "^2.0",
27+
"php-http/message-factory": "^1.0",
28+
"psr/http-client": "^1.0",
29+
"psr/http-factory": "^1.0",
30+
"psr/http-message": "^1.0 || ^2.0"
2531
},
2632
"require-dev": {
2733
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
34+
"guzzlehttp/psr7": "^1.0 || ^2.0",
35+
"php-http/curl-client": "^2.0",
36+
"php-http/mock-client": "^1.0",
2837
"phpstan/phpstan": "~2.1",
2938
"phpunit/phpunit": "^9.5 || ^10.0",
3039
"slevomat/coding-standard": "^8.20",
@@ -47,7 +56,8 @@
4756
},
4857
"config": {
4958
"allow-plugins": {
50-
"dealerdirect/phpcodesniffer-composer-installer": true
59+
"dealerdirect/phpcodesniffer-composer-installer": true,
60+
"php-http/discovery": true
5161
},
5262
"optimize-autoloader": true,
5363
"platform": {
@@ -62,7 +72,7 @@
6272
],
6373
"phpcbf": "phpcbf",
6474
"phpcs": "phpcs",
65-
"phpstan": "phpstan analyze",
75+
"phpstan": "phpstan analyze --memory-limit=256M",
6676
"phpunit": "phpunit"
6777
}
6878
}

0 commit comments

Comments
 (0)