mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-19 22:33:14 +03:00
Updated to reflect changes in PHP-HTTP
This commit is contained in:
parent
a0edd0eb30
commit
7f3d637756
@ -25,12 +25,13 @@ curl -sS https://getcomposer.org/installer | php
|
|||||||
php composer.phar require mailgun/mailgun-php:~1.7.2
|
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
|
[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
|
```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).**
|
**For shared hosts without SSH access, check out our [Shared Host Instructions](SharedHostInstall.md).**
|
||||||
|
@ -5,13 +5,12 @@
|
|||||||
"php": ">=5.4.0",
|
"php": ">=5.4.0",
|
||||||
"guzzlehttp/psr7": "~1.2",
|
"guzzlehttp/psr7": "~1.2",
|
||||||
"php-http/client-implementation": "@dev",
|
"php-http/client-implementation": "@dev",
|
||||||
"php-http/discovery": "dev-master"
|
"php-http/discovery": "~0.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "~4.6",
|
"phpunit/phpunit": "~4.6",
|
||||||
"php-http/guzzle6-adapter": "dev-master",
|
"php-http/guzzle6-adapter": "dev-master",
|
||||||
"php-http/httplug": "dev-master",
|
"php-http/httplug": "dev-master"
|
||||||
"php-http/message-factory": "dev-master"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace Mailgun;
|
namespace Mailgun;
|
||||||
|
|
||||||
use Http\Adapter\HttpAdapter;
|
|
||||||
use Http\Client\HttpClient;
|
use Http\Client\HttpClient;
|
||||||
use Mailgun\Constants\ExceptionMessages;
|
use Mailgun\Constants\ExceptionMessages;
|
||||||
use Mailgun\Messages\Exceptions;
|
use Mailgun\Messages\Exceptions;
|
||||||
@ -34,7 +33,7 @@ class Mailgun{
|
|||||||
* @param string $apiEndpoint
|
* @param string $apiEndpoint
|
||||||
* @param string $apiVersion
|
* @param string $apiVersion
|
||||||
* @param bool $ssl
|
* @param bool $ssl
|
||||||
* @param HttpAdapter $httpClient
|
* @param HttpClient $httpClient
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$apiKey = null,
|
$apiKey = null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user