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 ext/curl. Streams entity bodies for memory management with large transfers. Supports all standard and custom HTTP method verbs. Simplifies HTTP form submissions. Implements secure-by-default TLS. Supports cookies and sessions. Functions seamlessly behind HTTP proxies. Additionally, you might want to install the nghttp2 library to take advantage of FFI to speed up and reduce the memory usage on PHP 7.4. More extensive code examples reside in the examples directory.

Features

  • Pools persistent connections (keep-alive @ HTTP/1.1, multiplexing @ HTTP/2)
  • Transparently follows redirects
  • Requests concurrently by default
  • Supports HTTP/1 and HTTP/2
  • Decodes compressed entity bodies (gzip, deflate)
  • Exposes headers and message data

Project Samples

Project Activity

See All Activity >

Categories

HTTP Clients

License

MIT License

Follow HTTP Client

HTTP Client Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of HTTP Client!

Additional Project Details

Programming Language

PHP

Related Categories

PHP HTTP Clients

Registered

2022-02-28