dronezzzko / guzzle-simple-circuit-breaker
An implementation of the Circuit Breaker pattern for Guzzle
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/dronezzzko/guzzle-simple-circuit-breaker
Requires
- php: ^7.4
- ext-json: *
- guzzlehttp/guzzle: ^7
Requires (Dev)
- desarrolla2/cache: ^3
- phpunit/phpunit: ^9
- symfony/cache: ^5
This package is auto-updated.
Last update: 2025-09-29 02:29:08 UTC
README
Implementation of the Circuit Breaker pattern for Guzzle that prevents sending failed requests in a row.
How To Install
composer require dronezzzko/guzzle-simple-circuit-breaker
How To Use
use GuzzleHttp\HandlerStack; use GuzzleHttp\Handler\CurlHandler; use GuzzleHttp\Client; use Dronezzzko\SimpleCircuitBreakerMiddleware; $stack = HandlerStack::create(); $stack->push(SimpleCircuitBreakerMiddleware::factory($cache)); $client = new Client(['handler' => $stack]);