Skip to content

Commit e0ed2a4

Browse files
committed
Add note about PSR-17 HTTP Factories to readme
1 parent 1b12632 commit e0ed2a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ A PHP package for mapping remote [JSON:API](http://jsonapi.org/) resources to El
2121
composer require swisnl/json-api-client
2222
```
2323

24-
N.B. Make sure you have installed a PSR-18 HTTP Client before you install this package or install one at the same time e.g. `composer require swisnl/json-api-client guzzlehttp/guzzle:^7.0`.
24+
N.B. Make sure you have installed a PSR-18 HTTP Client and PSR-17 HTTP Factories before you install this package or install one at the same time e.g. `composer require swisnl/json-api-client guzzlehttp/guzzle:^7.3`.
2525

2626
### HTTP Client
2727

28-
We are decoupled from any HTTP messaging client with the help of [PSR-18 HTTP Client](https://www.php-fig.org/psr/psr-18/).
29-
This requires an extra package providing [psr/http-client-implementation](https://packagist.org/providers/psr/http-client-implementation).
28+
We are decoupled from any HTTP messaging client with the help of [PSR-18 HTTP Client](https://www.php-fig.org/psr/psr-18/) and [PSR-17 HTTP Factories](https://www.php-fig.org/psr/psr-17/).
29+
This requires an extra package providing [psr/http-client-implementation](https://packagist.org/providers/psr/http-client-implementation) and [psr/http-factory-implementation](https://packagist.org/providers/psr/http-factory-implementation).
3030
To use Guzzle 7, for example, simply require `guzzlehttp/guzzle`:
3131

3232
``` bash
33-
composer require guzzlehttp/guzzle:^7.0
33+
composer require guzzlehttp/guzzle:^7.3
3434
```
3535

3636
See [HTTP Clients](#http-clients) if you want to use your own HTTP client or use specific configuration options.

0 commit comments

Comments
 (0)