amphp/artax
Deprecated (unmaintained) async HTTP/1.1 client for PHP built on Amp. Implements HTTP over raw TCP sockets (no ext/curl), with keep-alive pooling, redirects, gzip decoding, streaming bodies, TLS, cookies, and proxy support. Use amphp/http-client instead.
Artax allows streaming the response body by using the Message API of amphp/byte-stream.
$response = yield $client->request("https://httpbin.org/get");
$body = $response->getBody();
while (null !== $chunk = yield $body->read()) {
print $chunk;
}
How can I help you explore Laravel packages today?