PHP Classes
elePHPant
Icontem

PHP Curl Parallel Requests: Send multiple HTTP parallel requests with Curl

Recommend this page to a friend!

  Author Author  
Name: Daniele Cruciani is available for providing paid consulting. Contact Daniele Cruciani .
Classes: 3 packages by
Country: Italy Italy
Age: 41
All time rank: 258399 in Italy Italy
Week rank: 74 Up3 in Italy Italy Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can send multiple HTTP parallel requests with the Curl extension.

It can queue one or more HTTP requests to be send to given URLs and register an object that implements a request sender interface to handle the responses.

The class calls the registered handler object when the response of queued request is returned.

The handler receives a response object that can be called to retrieve the response status, response headers and body data.

Details
{startverticalbanner}
CurlParallel
============

This is a fork, or derivate work of James Socol OOCurl and OOCurlParallel classes.
It just change some methods (adding here and there), define a Sender class and iSenderConsumer.

Plain classes, examples and PHPUnit test coming soon.

I could have brached from here https://github.com/jsocol/oocurl , but I have a different plan on the use
in pseudo parallel php pattern

MIT License as original work.

How much parallel
==

http://libevent.org/ and php extention http://php.net/manual/it/book.libevent.php permit to define event loop as it work on nodejs: single process but no blocking tasks. I doubt it is the right choice, php infrastructure is not born for this. Tough PHP language by itself could be used for it (i.e. with CLI), it is not so easy to use some extention that was intended for use on apache server (or through fcgi, or php standalone server). However here is the same concept used only for one kind of I/O, it does not need libevent but in fact it works the same way, no fork, just no blocking I/O and raise event on data

  Classes of Daniele Cruciani  >  PHP Curl Parallel Requests  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Curl Parallel Requests
Base name: curl-parallel
Description: Send multiple HTTP parallel requests with Curl
Version: 1.1
PHP version: 5.3
License: MIT/X Consortium License
All time users: 443 users
All time rank: 5965
Week users: 0 users
Week rank: 743 Equal
 
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes


  Recommendations  

Very Fast Curl class
The fastest Curl class


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.


  Related pages  
github repository
the repository where to fork

  Files folder image Files  
File Role Description
Accessible without login Plain text file curl.class.php Class Class source
Accessible without login Plain text file curlparallel.class.php Class Class source
Accessible without login Plain text file httpresponse.class.php Class Class source
Accessible without login Plain text file README.md Data Auxiliary data
Accessible without login Plain text file sender.class.php Class Class source
Accessible without login Plain text file TestCurl.php Example Unit test script
Accessible without login Plain text file urllist.url Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: curl-parallel.tar.gz curl-parallel.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.