forked from jmathai/php-multi-curl
-
Notifications
You must be signed in to change notification settings - Fork 0
aliceylan/php-multi-curl
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PHP-multi-curl is a high performance multi curl library which can be used to parallel http web service calls. It has gone through various revisions and was most widely used as part of the twitter-async project. It's the single most useful library I've written and has been integrated into various libraries for Twitter, Foursquare, Paypal and Mail Chimp. One of the key aspects that differentiates it from many similar multi curl libraries is that it allows you to cherry pick responses. You can fire off 10 http calls and retrieve results for a specific one without having to wait for all 10 to be completed. If you rely heavily on web services (as I do) then it'll be a tool you can't live without. Usage <?php $mc = EpiCurl::getInstance(); $ch = curl_init('http://www.yahoo.com/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $yahoo = $mc->addCurl($ch); $ch = curl_init('http://www.google.com/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $google = $mc->addCurl($ch); echo "The response code for Yahoo! was {$yahoo->code} and Google was {$google->code}"; ?> Authors * jmathai Documentation: * http://wiki.github.com/jmathai/php-multi-curl
About
A high performance PHP library for using multi curl for parallel http calls.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published