PHPackages                             mars-php-util/rate-limit-bypass - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mars-php-util/rate-limit-bypass

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mars-php-util/rate-limit-bypass
===============================

By pass api rate limit by using proxies or api keys rotation

1.0.0(4y ago)312MITPHPPHP &gt;=7.3.0

Since Aug 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/luatnd/php-rate-limit-bypass2)[ Packagist](https://packagist.org/packages/mars-php-util/rate-limit-bypass)[ RSS](/packages/mars-php-util-rate-limit-bypass/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

limit-by-ip-rotation
====================

[](#limit-by-ip-rotation)

##### Problem:

[](#problem)

Struggling with 3rd party API limit, they limit n requests per second per IP address

##### Expected:

[](#expected)

Easily call api without

##### Solution:

[](#solution)

By using this package, you're using:

- ip rotation via proxy
- rate limiter to control request rate

Installation
============

[](#installation)

You can install this lib by 2 methods:

using composer
--------------

[](#using-composer)

This project using composer.

```
composer require mars-php-utils/rate-limit-bypass
```

Manual install
--------------

[](#manual-install)

checkout repos at:

```
vendor_dev/rate-limiter-bypass

```

composer.json

```
"repositories": [
    {
        "type": "path",
        "url": "vendor_dev/rate-limiter-bypass"
    }
],

```

How to use
==========

[](#how-to-use)

Assuming you're using `curl` to make request:

```
function getUser($id) {
    $curl = curl("https://example-api.com/user/$id");
    curl_setopt_array($curl, $your_options);
    $response = curl_exec($curl);
    return $response;
}
```

You just need to:

```
use RateLimitBypass\IpRateLimitHelper;

$max_request_per_second = 10;
$proxies = [...];
$rotator = new IpRateLimitHelper($proxies, $max_request_per_second);

function getUser($id) {
    $proxy_opt = $rotator->tap();

    $curl = curl("https://example-api.com/user/$id");

    $your_options = array_merge_recursive($your_options, $proxy_opt);

    curl_setopt_array($curl, $your_options);
    $response = curl_exec($curl);
    return $response;
}
```

Limit by api keys rotation
==========================

[](#limit-by-api-keys-rotation)

```
use RateLimitBypass\ApiKeyRateLimitHelper;

$max_request_per_second = 10;
$api_keys = [...];
$rotator = new ApiKeyRateLimitHelper($api_keys, $max_request_per_second);

function getUser($id) {
    $api_key = $rotator->tap(); // api key can be in query string, headers, path, ... depend on the API endpoint

    $curl = curl("https://example-api.com/user/$id?apiKey=$api_key");
    curl_setopt_array($curl, $your_options);
    $response = curl_exec($curl);
    return $response;
}
```

Local Development
=================

[](#local-development)

composer.json

```
"repositories": [
        {
            "type": "path",
            "url": "vendor_dev/mars-php-utils/rate-limit-bypass"
        }
    ],

```

then run :

```
composer require mars-php-utils/rate-limit-bypass

```

composer will do symlink vendor/mars-php-utils to vendor\_dev/mars-php-utils

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1716d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5acdcfa90282f77c8fda3e108646c9ae63f762206c76f936b3abb197c3b86965?d=identicon)[luatnd](/maintainers/luatnd)

---

Top Contributors

[![haonotjusthere](https://avatars.githubusercontent.com/u/94945097?v=4)](https://github.com/haonotjusthere "haonotjusthere (2 commits)")

### Embed Badge

![Health badge](/badges/mars-php-util-rate-limit-bypass/health.svg)

```
[![Health](https://phpackages.com/badges/mars-php-util-rate-limit-bypass/health.svg)](https://phpackages.com/packages/mars-php-util-rate-limit-bypass)
```

###  Alternatives

[nunomaduro/essentials

Just better defaults for your Laravel projects.

1.2k317.5k51](/packages/nunomaduro-essentials)[snowplow/referer-parser

Snowplow Refer(r)er parser for PHP

3782.2M30](/packages/snowplow-referer-parser)[n98/junit-xml

JUnit XML Document generation library

168.7M8](/packages/n98-junit-xml)[zenstruck/bytes

Parse, manipulate, humanize, and format bytes.

25662.7k8](/packages/zenstruck-bytes)[yajra/laravel-disqus

A simple Disqus platform integration with Laravel.

8456.9k](/packages/yajra-laravel-disqus)

PHPackages © 2026

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