Giter Site home page Giter Site logo

php-multi-curl's Introduction

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();
  $yahoo = $mc->addURL('http://www.yahoo.com/');
  $google = $mc->addURL('http://www.google.com/');

  echo "The response code for Yahoo! was {$yahoo->code} and Google was {$google->code}";
?>

Authors

  • jmathai

Contributors

  • Lewis Cowles (LewisCowles1986) - Usability for adding url's without needing to worry about CURL, but provisioning also for specifying additional parameters

Documentation:

php-multi-curl's People

Contributors

jmathai avatar degreez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.