gipfl / curl
ReactPHP-friendly async CURL abstraction
Installs: 6 497
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gipfl/curl
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
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.