Skip to content

Yaffle/MultiGet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Simultaneuos HTTP requests for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages