diff --git a/composer.json b/composer.json index 5254148..126f4fb 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ "require-dev": { "nyholm/nsa": "^1.2.1", "nyholm/psr7": "^1.3.1", - "php-http/guzzle7-adapter": "^0.1.1", + "symfony/http-client": "^5.3", "phpunit/phpunit": "^9.3" }, "suggest": { - "guzzlehttp/psr7": "PSR-7 message implementation that also provides common utility methods", - "php-http/curl-client": "cURL client for PHP-HTTP" + "nyholm/psr7": "PSR-7 message implementation", + "symfony/http-client": "HTTP client" }, "extra": { "branch-alias": { diff --git a/tests/Api/DomainTest.php b/tests/Api/DomainTest.php index b8942e9..f91ffd1 100644 --- a/tests/Api/DomainTest.php +++ b/tests/Api/DomainTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Domain; use Mailgun\Exception\InvalidArgumentException; use Mailgun\Model\Domain\ConnectionResponse; diff --git a/tests/Api/EmailValidationTest.php b/tests/Api/EmailValidationTest.php index 7525224..ddd8a69 100644 --- a/tests/Api/EmailValidationTest.php +++ b/tests/Api/EmailValidationTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\EmailValidation; /** diff --git a/tests/Api/EmailValidationV4Test.php b/tests/Api/EmailValidationV4Test.php index 21dddd3..a8586b3 100755 --- a/tests/Api/EmailValidationV4Test.php +++ b/tests/Api/EmailValidationV4Test.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\EmailValidationV4; use Mailgun\Model\EmailValidationV4\CreateBulkJobResponse; use Mailgun\Model\EmailValidationV4\CreateBulkPreviewResponse; diff --git a/tests/Api/EventTest.php b/tests/Api/EventTest.php index f8a0cdd..cd0e9e8 100644 --- a/tests/Api/EventTest.php +++ b/tests/Api/EventTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Event; use Mailgun\Exception\InvalidArgumentException; use Mailgun\Model\Event\EventResponse; diff --git a/tests/Api/Ip.php b/tests/Api/Ip.php index 632b976..5bb8c1f 100644 --- a/tests/Api/Ip.php +++ b/tests/Api/Ip.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Ip; use Mailgun\Model\Ip\IndexResponse; diff --git a/tests/Api/MailingList/MemberTest.php b/tests/Api/MailingList/MemberTest.php index 8f5f3a6..5ff2251 100644 --- a/tests/Api/MailingList/MemberTest.php +++ b/tests/Api/MailingList/MemberTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api\MailingList; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\MailingList; use Mailgun\Exception\InvalidArgumentException; use Mailgun\Tests\Api\TestCase; diff --git a/tests/Api/MailingListTest.php b/tests/Api/MailingListTest.php index fec1aed..7de6f42 100644 --- a/tests/Api/MailingListTest.php +++ b/tests/Api/MailingListTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\MailingList; use Mailgun\Exception\InvalidArgumentException; use Mailgun\Model\EmailValidation\ValidateResponse; diff --git a/tests/Api/MessageTest.php b/tests/Api/MessageTest.php index b5f66d9..9fb595c 100644 --- a/tests/Api/MessageTest.php +++ b/tests/Api/MessageTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Message; use Mailgun\Model\Message\SendResponse; use Mailgun\Model\Message\ShowResponse; diff --git a/tests/Api/RouteTest.php b/tests/Api/RouteTest.php index b91d18a..350ea6b 100644 --- a/tests/Api/RouteTest.php +++ b/tests/Api/RouteTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Route; use Mailgun\Model\Route\DeleteResponse; use Mailgun\Model\Route\IndexResponse; diff --git a/tests/Api/StatsTest.php b/tests/Api/StatsTest.php index 063302f..78d2005 100644 --- a/tests/Api/StatsTest.php +++ b/tests/Api/StatsTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Exception\InvalidArgumentException; use Mailgun\Hydrator\ModelHydrator; use Mailgun\Model\Stats\TotalResponse; diff --git a/tests/Api/TagTest.php b/tests/Api/TagTest.php index 0221997..51f2bde 100644 --- a/tests/Api/TagTest.php +++ b/tests/Api/TagTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Api\Tag; use Mailgun\Hydrator\ModelHydrator; use Mailgun\Model\Tag\IndexResponse; diff --git a/tests/Api/TestCase.php b/tests/Api/TestCase.php index b7e6726..255ef93 100644 --- a/tests/Api/TestCase.php +++ b/tests/Api/TestCase.php @@ -11,8 +11,8 @@ declare(strict_types=1); namespace Mailgun\Tests\Api; -use GuzzleHttp\Psr7\Request; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Request; +use Nyholm\Psr7\Response; use Mailgun\Hydrator\ModelHydrator; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\ResponseInterface; diff --git a/tests/Exception/HttpClientExceptionTest.php b/tests/Exception/HttpClientExceptionTest.php index 89589da..b50228e 100644 --- a/tests/Exception/HttpClientExceptionTest.php +++ b/tests/Exception/HttpClientExceptionTest.php @@ -11,7 +11,7 @@ declare(strict_types=1); namespace Mailgun\Tests\Exception; -use GuzzleHttp\Psr7\Response; +use Nyholm\Psr7\Response; use Mailgun\Exception\HttpClientException; use Mailgun\Tests\MailgunTestCase;