@@ -5,6 +5,13 @@ There are two types of libraries you can use to send HTTP messages; clients and
5
5
``HttpClient `` and/or the ``HttpAsyncClient `` interfaces directly. A client adapter is a class implementing the
6
6
interface and forwarding the calls to an HTTP client not implementing the interface. (See `Adapter pattern `_ on Wikipedia).
7
7
8
+ .. hint ::
9
+
10
+ Modern PHP clients implement the ``PSR-18 HTTP Client `` standard. If you want to do synchronous requests, you don't
11
+ need a PHP-HTTP adapter anymore. We keep providing the the curl client and a mock client for testing.
12
+
13
+ The adapters are still useful if you need the PHP-HTTP ``HttpAsyncClient ``.
14
+
8
15
.. note ::
9
16
10
17
All clients and adapters comply with `Liskov substitution principle `_ which means that you can easily change one
@@ -29,13 +36,6 @@ interface and forwarding the calls to an HTTP client not implementing the interf
29
36
Current Clients and Adapters
30
37
----------------------------
31
38
32
- .. hint ::
33
-
34
- Modern PHP clients implement the ``PSR-18 HTTP Client `` standard. If you want to do synchronous requests, you don't
35
- need a PHP-HTTP adapter anymore. We keep providing the the curl client and a mock client for testing.
36
-
37
- The adapters are still useful if you need the PHP-HTTP ``HttpAsyncClient ``.
38
-
39
39
.. csv-table ::
40
40
:header: "Name", "Type", "Links", "Stats"
41
41
:widths: 32, 15, 15, 38
@@ -44,7 +44,6 @@ Current Clients and Adapters
44
44
"``php-http/mock-client ``", "Client", ":doc: `Docs </clients/mock-client >`, `Repo <https://github.com/php-http/mock-client >`__", "|mock_version | |mock_downloads | "
45
45
"``symfony/http-client ``", "Client", ":doc: `Docs </clients/symfony-client >`, `Repo <https://github.com/symfony/http-client >`__", "|symfony_version | |symfony_downloads | "
46
46
"``php-http/artax-adapter ``", "Adapter", ":doc: `Docs </clients/artax-adapter >`, `Repo <https://github.com/php-http/artax-adapter >`__", "|artax_version | |artax_downloads | "
47
- "``php-http/buzz-adapter ``", "Adapter", ":doc: `Docs </clients/buzz-adapter >`, `Repo <https://github.com/php-http/buzz-adapter >`__", "|buzz_version | |buzz_downloads | "
48
47
"``php-http/cakephp-adapter ``", "Adapter", ":doc: `Docs </clients/cakephp-adapter >`, `Repo <https://github.com/php-http/cakephp-adapter >`__", "|cakephp_version | |cakephp_downloads | "
49
48
"``php-http/guzzle7-adapter ``", "Adapter", ":doc: `Docs </clients/guzzle7-adapter >`, `Repo <https://github.com/php-http/guzzle7-adapter >`__", "|guzzle7_version | |guzzle7_downloads | "
50
49
"``php-http/react-adapter ``", "Adapter", ":doc: `Docs </clients/react-adapter >`, `Repo <https://github.com/php-http/react-adapter >`__", "|react_version | |react_downloads | "
@@ -59,6 +58,7 @@ These are not maintained anymore, but we keep documentation around for now. Plea
59
58
:widths: 32, 15, 15, 38
60
59
61
60
"``php-http/socket-client ``", "Client", ":doc: `Docs </clients/socket-client >`, `Repo <https://github.com/php-http/socket-client >`__", "|socket_version | |socket_downloads | "
61
+ "``php-http/buzz-adapter ``", "Adapter", ":doc: `Docs </clients/buzz-adapter >`, `Repo <https://github.com/php-http/buzz-adapter >`__", "|buzz_version | |buzz_downloads | "
62
62
"``php-http/guzzle5-adapter ``", "Adapter", ":doc: `Docs </clients/guzzle5-adapter >`, `Repo <https://github.com/php-http/guzzle5-adapter >`__", "|guzzle5_version | |guzzle5_downloads | "
63
63
"``php-http/guzzle6-adapter ``", "Adapter", ":doc: `Docs </clients/guzzle6-adapter >`, `Repo <https://github.com/php-http/guzzle6-adapter >`__", "|guzzle6_version | |guzzle6_downloads | "
64
64
"``php-http/zend-adapter ``", "Adapter", ":doc: `Docs </clients/zend-adapter >`, `Repo <https://github.com/php-http/zend-adapter >`__", "|zend_version | |zend_downloads | "
0 commit comments