edrard / curl
Small Curl library with Multicurl and Retrying
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/edrard/curl
Requires
- php: >=5.4
- ext-curl: *
This package is auto-updated.
Last update: 2025-09-23 23:54:32 UTC
README
Small Curl library with Multicurl
Simple Example
$urls[] = 'https://microsoft.com';
$urls[] = 'https://google.com';
$curl = new edrard\Curl\Curl();
$curl->setSleep(function($retry){
return ceil($retry/50);
});
//Adding Urls
foreach($urls as $key => $link){
$curl->addSession( $link, $key );
}
// In $tmp we have result
$tmp = $curl->exec();