https://github.com/codewithsushil/async-http
🚀 Async, non-blocking HTTP client using PHP streams.
https://github.com/codewithsushil/async-http
http-client http-requests non-blocking non-blocking-sockets rest-api socket stream
Last synced: about 1 month ago
JSON representation
🚀 Async, non-blocking HTTP client using PHP streams.
- Host: GitHub
- URL: https://github.com/codewithsushil/async-http
- Owner: CodeWithSushil
- License: mit
- Created: 2025-07-06T12:00:26.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-08-19T02:37:54.000Z (8 months ago)
- Last Synced: 2025-10-17T00:02:21.424Z (6 months ago)
- Topics: http-client, http-requests, non-blocking, non-blocking-sockets, rest-api, socket, stream
- Language: PHP
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Async HTTP Client for PHP
[](https://packagist.org/packages/async-http/async-httpi)

[](https://github.com/CodeWithSushil/async-http/actions/workflows/tests.yml)
[](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
- 🌀 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
```bash
composer require async-http/async-http
```
## Example
```php
get($url) as $response) {
echo $response->getBody();
}
```