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.
amphp/artax (or its successor, amphp/http-client) to avoid reinventing an async HTTP client from scratch, especially for high-concurrency, low-latency use cases. The package eliminates dependency on ext/curl, reducing server complexity and improving portability.amphp/http-client (the maintained successor) if adopting this package, as artax is deprecated. Use this as a temporary or legacy solution only.cURL or Guzzle in legacy systems where async I/O is critical.ext/curl (e.g., Docker containers without extensions, strict dependency policies).amphp/amp, amphp/socket) and want consistency.amphp/http-client or Guzzle).amphp/http-client).Guzzle or Symfony HTTP Client for most REST use cases).amphp/http-client is more aligned with future-proofing)."We can reduce latency and scale HTTP requests in our [X system] by adopting amphp/artax (or its successor), enabling parallel, non-blocking calls without cURL dependencies. This aligns with our goal to [improve performance/cost-efficiency] while maintaining compliance with HTTP/1.1 standards. The package is battle-tested in high-concurrency environments and integrates seamlessly with our existing [Amp/async] infrastructure. Migration to the maintained amphp/http-client is straightforward, ensuring long-term viability."
*"This package offers a lightweight, async HTTP client built on Amp’s event loop, ideal for:
ext/curl dependency (simpler deployments).
✅ Fine-grained control over HTTP/1.1 (headers, proxies, redirects).
✅ Proven stability (used in production by Amp ecosystem).
Action: Evaluate for [use case], then migrate to amphp/http-client for maintenance. Avoid for HTTP/2 or sync-only workflows."**"If you’re working on async PHP (Amp/ReactPHP/Swoole) and need a reliable, low-level HTTP client, artax is a solid choice—but use amphp/http-client instead. Key perks:
cURL: Pure PHP implementation (good for Docker/lightweight setups).
Trade-offs:$client = new Artax\Client();
$response = yield $client->request('GET', 'https://api.example.com/data');
echo yield $response->getBody();
```"*
How can I help you explore Laravel packages today?