PHPackages                             async-http/async-http - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. async-http/async-http

ActiveLibrary[HTTP &amp; Networking](/categories/http)

async-http/async-http
=====================

🚀 Async, non-blocking HTTP client using PHP streams

v1.0.1(10mo ago)21MITPHPPHP &gt;=8.1CI passing

Since Jul 6Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/CodeWithSushil/async-http)[ Packagist](https://packagist.org/packages/async-http/async-http)[ GitHub Sponsors](https://github.com/sponsors/CodeWithSushil)[ RSS](/packages/async-http-async-http/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

Async HTTP Client for PHP
=========================

[](#async-http-client-for-php)

[![Packagist Version](https://camo.githubusercontent.com/4a0b4423b8ea198c3e32960c673ac2eade3ae6a377927c0f7b307078986cc313/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173796e632d687474702f6173796e632d687474702e737667)](https://packagist.org/packages/async-http/async-httpi)[![Packagist Downloads](https://camo.githubusercontent.com/e6725d407cbec281dc1b9eca0c301a01c5033a11ff6530c54fdf178b98c15939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6173796e632d687474702f6173796e632d687474703f7374796c653d666c6174266c6f676f3d636f6d706f73657226636f6c6f723d626c7565)](https://camo.githubusercontent.com/e6725d407cbec281dc1b9eca0c301a01c5033a11ff6530c54fdf178b98c15939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6173796e632d687474702f6173796e632d687474703f7374796c653d666c6174266c6f676f3d636f6d706f73657226636f6c6f723d626c7565)[![Tests](https://github.com/CodeWithSushil/async-http/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/CodeWithSushil/async-http/actions/workflows/tests.yml)[![CodeQL](https://github.com/CodeWithSushil/async-http/actions/workflows/github-code-scanning/codeql/badge.svg?branch=master)](https://github.com/CodeWithSushil/async-http/actions/workflows/github-code-scanning/codeql)

A fully async, non-blocking HTTP client built using `stream_socket_client` and `stream_select`. No cURL. No Guzzle.

Features
--------

[](#features)

- 🌀 Non-blocking requests using PHP streams
- 🔁 Multiple async requests in parallel
- 🔄 Retries and timeout support
- 🧩 PSR-18 / PSR-7 compatible
- ✅ GET, POST, PUT, PATCH, DELETE supported

Install
-------

[](#install)

```
composer require async-http/async-http
```

Example
-------

[](#example)

```
