Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.
- Manages things like persistent connections, represents query strings as collections, simplifies sending streaming POST requests with fields and files, and abstracts away the underlying HTTP transport layer.
- Can send both synchronous and asynchronous requests using the same interface without requiring a dependency on a specific event loop.
- Pluggable HTTP handlers allows Guzzle to integrate with any method you choose for sending HTTP requests over the wire (e.g., cURL, sockets, PHP’s stream wrapper, non-blocking event loops like React, etc.).
- Guzzle makes it so that you no longer need to fool around with cURL options, stream contexts, or sockets.