Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.15 KB

clients.rst

File metadata and controls

37 lines (23 loc) · 1.15 KB

Clients & Adapters

There are clients implementing one of the HTTPlug interfaces directly, and adapter packages that implement the interface and forward the calls to HTTP clients not implementing the interface.

Clients:

.. toctree::

   clients/curl-client
   clients/socket-client
   clients/batch-client
   clients/mock-client

Client adapters:

.. toctree::

   clients/guzzle5-adapter
   clients/guzzle6-adapter
   clients/react-adapter

Composer Virtual Packages

Virtual packages are a way to specify the dependency on an implementation of an interface-only repository without forcing a specific implementation. For HTTPlug, the virtual package is called php-http/client-implementation.

There is no project registered with that name. However, all client implementations including client adapters for HTTPlug use the provide section to tell composer that they do provide the client-implementation.