rymanalu/laravel-circuit-breaker
Larablocks Analysis
rymanalu/laravel-circuit-breaker works with Laravel 5 (latest release v1.0.1, Dec 8, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Dec 8, 2016)
- 14 downloads a month (needs 10,000)
- 5 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 8, 2016.
- No releases in the last 12 months.
- First released: Dec 8, 2016.
- Monthly downloads: 14.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require rymanalu/laravel-circuit-breaker |
|
| Latest Version: | v1.0.1 |
| PHP: | >=5.5.9 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Dec 8, 2016 |
| Links: | GitHub · Packagist |
Laravel 5 Circuit Breaker
This package provides an implementation of Circuit Breaker pattern for Laravel 5.
Installation
First, install this package:
composer require rymanalu/laravel-circuit-breaker
Next, add the ServiceProvider to the providers array in config/app.php:
Rymanalu\LaravelCircuitBreaker\CircuitBreakerServiceProvider::class,
You can use the facade for shorter code. Add this to your aliases:
'CircuitBreaker' => Rymanalu\LaravelCircuitBreaker\CircuitBreakerFacade::class,
APIs
<?php
use CircuitBreaker;
/**
* Get the number of failures for the given key.
*
* @param string $key
* @return int
*/
CircuitBreaker::failures($key);
/**
* Reset the number of failures for the given key.
*
* @param string $key
* @return bool
*/
CircuitBreaker::resetFailures($key);
/**
* Increment the counter for a given key for a given decay time.
*
* @param string $key
* @param float|int $decayMinutes
* @return int
*/
CircuitBreaker::track($key, $decayMinutes = 1);
/**
* Determine if the given key has too many failures.
*
* @param string $key
* @param int $maxFailures
* @param int $decayMinutes
* @return bool
*/
CircuitBreaker::tooManyFailures($key, $maxFailures, $decayMinutes = 1);
Related Packages
Circuit Breaker is laravel package that provides a way to handle failures gracef...
A simple circuit breaker that prevents cascading failures.
Control points for Laravel: declare what a critical operation tolerates, bound i...
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.1 | >=5.5.9 | ^5.0 | MIT | |
| v1.0.0 | >=5.5.9 | ^5.0 | MIT |