ulv / parallelcurl
dev-master
2016-12-28 11:27 UTC
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2025-04-21 15:28:12 UTC
README
Class implements curl_multi_* function family with random user agent string generation
Example usage:
$links = array(
'http://link1.com',
'http://link1.com/page1',
'http://link1.com/page2'
);
$result = array();
foreach (array_chunk($links, 2) as $chunk) {
$pcurl = new ParallelCurl($chunk);
$result[] = $pcurl->download();
}
print_r($result);