bentools/funnel-http-client

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

Maintainers

👁 bpolaszek

Package info

github.com/bpolaszek/funnel-http-client

pkg:composer/bentools/funnel-http-client

Statistics

Installs: 14 513

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 3

1.2.0 2026-03-31 08:48 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 9aeb533e0c786c3611cf33dd6e57d28a8aeddcec

  • Beno!t POLASZEK

symfonyhttpclientthrottlinghttpclientdecoratorrate-limitthrottler

This package is auto-updated.

Last update: 2026-05-31 00:18:55 UTC


README

👁 Latest Stable Version
👁 License
👁 CI Workflow
👁 Coverage Status
👁 Quality Score
👁 Total Downloads

🚦 Funnel Http Client

A decorator for symfony/http-client to throttle requests subject to rate-limits.

Installation

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

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

./vendor/bin/phpunit

License

MIT.