Updated to reflect changes in PHP-HTTP

This commit is contained in:
Tobias Nyholm 2015-11-18 15:46:53 +01:00
parent a0edd0eb30
commit 7f3d637756
3 changed files with 7 additions and 8 deletions

View File

@ -25,12 +25,13 @@ curl -sS https://getcomposer.org/installer | php
php composer.phar require mailgun/mailgun-php:~1.7.2
```
You do also need to choose what library to use when you are sending messages. Consult the
You do also need to choose what library to use when you are sending http messages. Consult the
[php-http/adapter-implementation](https://packagist.org/providers/php-http/adapter-implementation) virtual package to
find adapters to use. Example:
find adapters to use. For more information about virtual packages please refer to
[Httplug](http://docs.httplug.io/en/latest/virtual-package/). Example:
```bash
php composer.phar require php-http/guzzle6-adapter:^0.1.0
php composer.phar require php-http/guzzle6-adapter:dev-master
```
**For shared hosts without SSH access, check out our [Shared Host Instructions](SharedHostInstall.md).**

View File

@ -5,13 +5,12 @@
"php": ">=5.4.0",
"guzzlehttp/psr7": "~1.2",
"php-http/client-implementation": "@dev",
"php-http/discovery": "dev-master"
"php-http/discovery": "~0.2"
},
"require-dev": {
"phpunit/phpunit": "~4.6",
"php-http/guzzle6-adapter": "dev-master",
"php-http/httplug": "dev-master",
"php-http/message-factory": "dev-master"
"php-http/httplug": "dev-master"
},
"autoload": {
"psr-0": {

View File

@ -2,7 +2,6 @@
namespace Mailgun;
use Http\Adapter\HttpAdapter;
use Http\Client\HttpClient;
use Mailgun\Constants\ExceptionMessages;
use Mailgun\Messages\Exceptions;
@ -34,7 +33,7 @@ class Mailgun{
* @param string $apiEndpoint
* @param string $apiVersion
* @param bool $ssl
* @param HttpAdapter $httpClient
* @param HttpClient $httpClient
*/
public function __construct(
$apiKey = null,