https://github.com/codewithsushil/async-http
Asynchronous HTTP Client with morden PHP 8.1 or Later
https://github.com/codewithsushil/async-http
Last synced: 4 months ago
JSON representation
Asynchronous HTTP Client with morden PHP 8.1 or Later
- Host: GitHub
- URL: https://github.com/codewithsushil/async-http
- Owner: CodeWithSushil
- License: mit
- Created: 2025-07-06T12:00:26.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-07-06T13:18:37.000Z (7 months ago)
- Last Synced: 2025-07-06T13:18:41.182Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- 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();
}
```