Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 509 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 509 Bytes

MultiGet

Simultaneuos HTTP requests with curl_multi and PHP 5.3+

$mget = new MultiGet();
$mget->request('http://ya.ru')
->on('success', function ($content) {
  // this anonymous function will be called after request is loaded
  // so you can process data before all other downloads ends
  // also you can add new requests from here
});
$mget->go();// waits for downloads and executes callbacks
// at this point all work done...

Example

see example.php