Skip to content

Commit 8734493

Browse files
styks1987avigoldman
authored andcommitted
outline the requirement for php-http via composer (#130)
* outline the requirement for http-php via composer * update reference to setting up request adapter
1 parent f0ef950 commit 8734493

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ The recommended way to install the SparkPost PHP Library is through composer.
2121
curl -sS https://getcomposer.org/installer | php
2222
```
2323

24+
Sparkpost requires php-http client (see [Setting up a Request Adapter](#setting-up-a-request-adapter)). There are several [providers](https://packagist.org/providers/php-http/client-implementation) available. If you were using guzzle6 your install might look like this.
25+
26+
```
27+
composer require guzzlehttp/guzzle
28+
composer require php-http/guzzle6-adapter
29+
```
30+
2431
Next, run the Composer command to install the SparkPost PHP Library:
2532

2633
```
@@ -291,4 +298,4 @@ An exception will be thrown in two cases: there is a problem with the request or
291298

292299

293300
### Contributing
294-
See [contributing](https://github.com/SparkPost/php-sparkpost/blob/master/CONTRIBUTING.md).
301+
See [contributing](https://github.com/SparkPost/php-sparkpost/blob/master/CONTRIBUTING.md).

0 commit comments

Comments
 (0)