PHPackages                             icexch/rolling-curl-x - 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. icexch/rolling-curl-x

ActiveLibrary

icexch/rolling-curl-x
=====================

Easy to use cURL Multi wrapper for PHP.

169PHP

Since Oct 18Pushed 8y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![RollingCurlX](https://raw.githubusercontent.com/marcushat/RollingCurlX/master/logo/banner.png)](https://raw.githubusercontent.com/marcushat/RollingCurlX/master/logo/banner.png)

Rolling Curl X is a fork of Rolling Curl wrapper cURL Multi. It aims at making concurrent http requests in PHP as easy as possible.

#### License

[](#license)

MIT

#### Version

[](#version)

3.0.0

#### Requirements

[](#requirements)

PHP 5.4+

How to Use
----------

[](#how-to-use)

Using this class is very easy.

First initialize class with the maximum number of concurrent requests you want open at a time. All requests after this will be queued until one completes.

```
$RCX = new RollingCurlX(10);
```

Next add a request to the queue

```
$url = 'http://www.google.com/search?q=apples';
$post_data = ['user' => 'bob', 'token' => 'dQw4w9WgXcQ']; //set to NULL if not using POST
$user_data = ['foo', $whatever];
$options = [CURLOPT_FOLLOWLOCATION => false];
function callback_functn($response, $url, $request_info, $user_data, $time) {
    $time; //how long the request took in milliseconds (float)
    $request_info; //array returned by curl_getinfo($ch), plus a couple extras
}

$RCX->addRequest($url, $post_data, 'callback_functn', $user_data, $options, $headers);
```

Send the requests. Blocks until all requests complete or timeout.

```
$RCX->execute();
```

See? Easy. Thats pretty much it for a simple request.

There's more if you need it though...

```
//Set a timeout on all requests:
$RCX->setTimeout(3000); //in milliseconds

//To set options for all requests(will be overridden by individual request options):
$RCX->setOptions([$curl_options]);

//To do the same with http headers:
$RCX->setHeaders(['Content-type: application/xml', 'Authorization: gfhjui']);
```

### Issues

[](#issues)

If you find any issues please let me know.

Enjoy.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2e1e3189d54930a737c87874e3bb38792ee92721dbbbb96996694230bbefed3?d=identicon)[pagrom](/maintainers/pagrom)

---

Top Contributors

[![pavel-grom](https://avatars.githubusercontent.com/u/16370127?v=4)](https://github.com/pavel-grom "pavel-grom (7 commits)")[![marcushat](https://avatars.githubusercontent.com/u/8149696?v=4)](https://github.com/marcushat "marcushat (6 commits)")[![daipratt](https://avatars.githubusercontent.com/u/85543?v=4)](https://github.com/daipratt "daipratt (1 commits)")

### Embed Badge

![Health badge](/badges/icexch-rolling-curl-x/health.svg)

```
[![Health](https://phpackages.com/badges/icexch-rolling-curl-x/health.svg)](https://phpackages.com/packages/icexch-rolling-curl-x)
```

PHPackages © 2026

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