Provides powerful methods to fetch HTTP resources synchronously or asynchronously. The HttpClient component is a low-level HTTP client with support for both PHP stream wrappers and cURL. It provides utilities to consume APIs and supports synchronous and asynchronous operations. The HTTP client contains many options you might need to take full control of the way the request is performed, including DNS pre-resolution, SSL parameters, public key pinning, etc. They can be defined globally in the configuration (to apply it to all requests) and to each request (which overrides any global configuration). It's common that some of the HTTP client options depend on the URL of the request (e.g. you must set some headers when making requests to GitHub API but not for other hosts). If that's your case, the component provides scoped clients (using ScopingHttpClient) to autoconfigure the HTTP client based on the requested URL.

Features

  • Provides powerful methods to fetch HTTP resources
  • Support for both PHP stream wrappers and cURL
  • Provides utilities to consume APIs
  • Fetch HTTP resources synchronously or asynchronously
  • Low-level HTTP client
  • HTTP client is interoperable with many common HTTP client abstractions in PHP

Project Samples

Project Activity

See All Activity >

Categories

HTTP Clients

License

MIT License

Follow HttpClient component

HttpClient component Web Site

Other Useful Business Software
SoftCo: Enterprise Invoice and P2P Automation Software Icon
SoftCo: Enterprise Invoice and P2P Automation Software

For companies that process over 20,000 invoices per year

SoftCo Accounts Payable Automation processes all PO and non-PO supplier invoices electronically from capture and matching through to invoice approval and query management. SoftCoAP delivers unparalleled touchless automation by embedding AI across matching, coding, routing, and exception handling to minimize the number of supplier invoices requiring manual intervention. The result is 89% processing savings, supported by a context-aware AI Assistant that helps users understand exceptions, answer questions, and take the right action faster.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of HttpClient component!

Additional Project Details

Programming Language

PHP

Related Categories

PHP HTTP Clients

Registered

2023-05-12