PHPackages                             bentools/funnel-http-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bentools/funnel-http-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bentools/funnel-http-client
===========================

A throttler for symfony/http-client to handle rate limits

1.1.1(2mo ago)313.1k↓50%1[1 issues](https://github.com/bpolaszek/funnel-http-client/issues)[2 PRs](https://github.com/bpolaszek/funnel-http-client/pulls)MITPHPPHP &gt;=8.0CI passing

Since Feb 15Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/bpolaszek/funnel-http-client)[ Packagist](https://packagist.org/packages/bentools/funnel-http-client)[ RSS](/packages/bentools-funnel-http-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/95229ade71aa4c9f87bdc74355d48c529a0ec5cb388e9c55f82ccfc236cf9e06/68747470733a2f2f706f7365722e707567782e6f72672f62656e746f6f6c732f66756e6e656c2d687474702d636c69656e742f762f737461626c65)](https://packagist.org/packages/bentools/funnel-http-client)[![License](https://camo.githubusercontent.com/899e33cdbb6cbdefd36a1e717eb65cfda29f315426b90dc85ecc2e02bb3d88d1/68747470733a2f2f706f7365722e707567782e6f72672f62656e746f6f6c732f66756e6e656c2d687474702d636c69656e742f6c6963656e7365)](https://packagist.org/packages/bentools/funnel-http-client)[![CI Workflow](https://github.com/bpolaszek/funnel-http-client/actions/workflows/ci-workflow.yml/badge.svg)](https://github.com/bpolaszek/funnel-http-client/actions/workflows/ci-workflow.yml)[![Coverage Status](https://camo.githubusercontent.com/631446b8a824a1fef2641ecb0f01c60b741aa17b974fb6bff87e493d858122d1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62706f6c61737a656b2f66756e6e656c2d687474702d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bpolaszek/funnel-http-client?branch=master)[![Quality Score](https://camo.githubusercontent.com/a52c2e513260b534085c71801f70f5f39cdfe650559775b426acf7365072a63b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f62706f6c61737a656b2f66756e6e656c2d687474702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bpolaszek/funnel-http-client)[![Total Downloads](https://camo.githubusercontent.com/d69f16dac1398de9da1b0286d37a8f16acccf2e82ccfd6c96a6f51cd4cb55d59/68747470733a2f2f706f7365722e707567782e6f72672f62656e746f6f6c732f66756e6e656c2d687474702d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/bentools/funnel-http-client)

🚦 Funnel Http Client
====================

[](#vertical_traffic_light-funnel-http-client)

A decorator for [symfony/http-client](https://symfony.com/doc/current/components/http_client.html) to throttle requests subject to rate-limits.

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

[](#installation)

> composer require bentools/funnel-http-client:1.0.x-dev

Usage
-----

[](#usage)

```
use BenTools\FunnelHttpClient\FunnelHttpClient;
use Symfony\Component\HttpClient\HttpClient;

$client = FunnelHttpClient::throttle(HttpClient::create(), $maxRequests = 3, $timeWindow = 5);

$client->request('GET', 'http://foo.bar');
$client->request('GET', 'http://foo.bar');
$client->request('GET', 'http://foo.bar');

$client->request('GET', 'http://foo.bar'); // Will wait a little before being actually triggered
```

Tests
-----

[](#tests)

> ./vendor/bin/phpunit

License
-------

[](#license)

MIT.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~559 days

Total

3

Last Release

70d ago

### Community

Maintainers

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

---

Top Contributors

[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (6 commits)")[![misaert](https://avatars.githubusercontent.com/u/12974251?v=4)](https://github.com/misaert "misaert (4 commits)")

---

Tags

httpclientsymfonyrate limitthrottlinghttpclientdecoratorthrottler

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bentools-funnel-http-client/health.svg)

```
[![Health](https://phpackages.com/badges/bentools-funnel-http-client/health.svg)](https://phpackages.com/packages/bentools-funnel-http-client)
```

###  Alternatives

[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[simpod/clickhouse-client

PHP ClickHouse Client

19116.7k](/packages/simpod-clickhouse-client)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

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