PHPackages                             rubobaquero/luminati - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rubobaquero/luminati

ActiveLibrary

rubobaquero/luminati
====================

Class for making concurrent HTTP/HTTPS requests via Luminati service

v1.0.2(10y ago)2131MITPHPPHP &gt;=5.4

Since Feb 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rubobaquero/luminati)[ Packagist](https://packagist.org/packages/rubobaquero/luminati)[ RSS](/packages/rubobaquero-luminati/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Luminati PHP SDK
================

[](#luminati-php-sdk)

Library for making HTTP / HTTPS concurrent requests using curl\_multi via the [Luminati Service](https://luminati.io/).

You will need at least a free [Luminati Trial Account](http://luminati.io/?affiliate=email/ruben@pincelpixel.com).

Installation
------------

[](#installation)

Install using composer:

```
composer require rubobaquero/luminati
```

Usage
-----

[](#usage)

Instance a Luminati object with username, password and optional zone (gen by default):

```
$luminati = new Luminati($username,$password,"gen");
```

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](http://php.net/manual/es/function.curl-setopt.php) of the request.
- `user_data` (optional): Info that you will want to pass as parameter to the callback function
- `country` (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:

```
$urls = array();
for($i=0;$i 'https://www.wikipedia.org',
		'options' => array(
			CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
		),
		'callback' => 'callback_func',
		'user_data' => array(
			'some' => 'useful data'
		),
		'country' => 'es'
 	);
}
```

Then, write a callback function that accepts the following parameters:

- `response`: Body of the response
- `url`: URL of the request
- `request_info`: Information of the request given by [curl\_getinfo()](http://php.net/manual/es/function.curl-getinfo.php)
- `user_data`: User data of the request
- `time`: Execution time of the request

Example:

```
function callback_func($response, $url, $request_info, $user_data, $time){
	echo "We have a response from $url";
}
```

Finally, make 5 concurrent requests with a timeout of 20 seconds each one:

```
$luminati->make_requests($urls,5,20);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bf30cf949dc21bd11bee0320475e5ce3a27c84dc688f89080b5f6c4df2e93f2?d=identicon)[rubobaquero](/maintainers/rubobaquero)

---

Top Contributors

[![rubobaquero](https://avatars.githubusercontent.com/u/8311629?v=4)](https://github.com/rubobaquero "rubobaquero (5 commits)")

### Embed Badge

![Health badge](/badges/rubobaquero-luminati/health.svg)

```
[![Health](https://phpackages.com/badges/rubobaquero-luminati/health.svg)](https://phpackages.com/packages/rubobaquero-luminati)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
