gipfl / curl
ReactPHP-friendly async CURL abstraction
v0.5.0
2025-09-03 12:14 UTC
Requires
- php: >=7.3
- ext-curl: *
- guzzlehttp/psr7: >=1.6
- psr/http-message: ^1.0
- react/event-loop: >=1.0
- react/promise: >=2
- react/stream: >=1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Mostly async CURL implementation to allow for an easier migration to ReactPHP for components depending on CURL features
Simple Example
<?php use gipfl\Curl\CurlAsync; $loop = \React\EventLoop\Factory::create(); $curl = new CurlAsync($loop); $curl->get('https://www.nytimes.com'); $loop->run();
Limitations
For now, as a low-level library this implementation wants to be as transparent as possible. This means that there is no automagic handling of redirects. You get every Response and must be prepared to deal with all kind of status codes.