Download the PHP package rubobaquero/luminati without Composer
On this page you can find all versions of the php package rubobaquero/luminati. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rubobaquero/luminati
More information about rubobaquero/luminati
Files in rubobaquero/luminati
Download rubobaquero/luminati
More information about rubobaquero/luminati
Files in rubobaquero/luminati
Vendor rubobaquero
Package luminati
Short Description Class for making concurrent HTTP/HTTPS requests via Luminati service
License MIT
Package luminati
Short Description Class for making concurrent HTTP/HTTPS requests via Luminati service
License MIT
Please rate this library. Is it a good library?
Informations about the package luminati
Luminati PHP SDK
Library for making HTTP / HTTPS concurrent requests using curl_multi via the Luminati Service.
You will need at least a free Luminati Trial Account.
Installation
Install using composer:
Usage
Instance a Luminati object with username, password and optional zone (gen by default):
Prepare an array with a few requests. Each request is defined by an array with the following keys:
url
(mandatory): URL of the request.callback
(mandatory): Callback function that will be called with the result of the CURL request.options
(optional): CURL options of the request.user_data
(optional): Info that you will want to pass as parameter to the callback functioncountry
(optional): ISO Country code of the request.session
(optional): Luminati Session. If you want to make the requests using the same exit node yoy can specify one. If you don´t set any, a random one is generated.
Example:
Then, write a callback function that accepts the following parameters:
response
: Body of the responseurl
: URL of the requestrequest_info
: Information of the request given by curl_getinfo()user_data
: User data of the requesttime
: Execution time of the request
Example:
Finally, make 5 concurrent requests with a timeout of 20 seconds each one:
All versions of luminati with dependencies
PHP Build Version
Package Version
The package rubobaquero/luminati contains the following files
Loading the files please wait ....