Async HTTP/1.1+2 client for PHP based on Amp.
This package provides an asynchronous HTTP client for PHP based on Amp. Its API simplifies standards-compliant HTTP resource traversal and RESTful web service consumption without obscuring the underlying protocol. The library manually implements HTTP over TCP sockets; as such it has no dependency on
This package can be installed as a Composer dependency.
composer require amphp/http-client
Additionally, you might want to install the
nghttp2library to take advantage of FFI to speed up and reduce the memory usage on PHP 7.4.
amphp/http-clientfollows the semver semantic versioning specification like all other
Everything in an
Internalnamespace or marked as
@internalis not public API and therefore not covered by BC guarantees.
Stable and recommended version.