Skip to content
/ curl Public

Small Curl library with Multicurl and Retrying

License

Notifications You must be signed in to change notification settings

Edrard/curl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curl

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();

About

Small Curl library with Multicurl and Retrying

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages