PHPackages                             solution10/circuitbreaker - 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. solution10/circuitbreaker

ActiveLibrary

solution10/circuitbreaker
=========================

Simple circuitbreaker class that uses Doctrine\\Cache to persist state

v1.2.0(9y ago)04.7k↓100%1MITPHPPHP &gt;= 5.5

Since May 14Pushed 9y agoCompare

[ Source](https://github.com/Solution10/circuitbreaker)[ Packagist](https://packagist.org/packages/solution10/circuitbreaker)[ RSS](/packages/solution10-circuitbreaker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (1)

Solution10\\CircuitBreaker
==========================

[](#solution10circuitbreaker)

Simple circuit breaker class.

[![Build Status](https://camo.githubusercontent.com/4b19c6ca0afa5fe2fe444923136ee26ecceecfdbac230279087e2aa22ee73627/68747470733a2f2f7472617669732d63692e6f72672f536f6c7574696f6e31302f63697263756974627265616b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Solution10/circuitbreaker)[![Latest Stable Version](https://camo.githubusercontent.com/b74ba49574225707335ba90906d87d399363a68fed709306926d12fe1520bbe7/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f63697263756974627265616b65722f762f737461626c652e737667)](https://packagist.org/packages/solution10/circuitbreaker)[![Total Downloads](https://camo.githubusercontent.com/e8017c66e6f4bb84246092111a4ee6411000d9d3ae9de21ff61f7cd49617e00d/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f63697263756974627265616b65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/solution10/circuitbreaker)[![License](https://camo.githubusercontent.com/9f1d8485b4054b8a6b759bb36f16c199ef46215937f7c277324554bf8081c599/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f63697263756974627265616b65722f6c6963656e73652e737667)](https://packagist.org/packages/solution10/circuitbreaker)

Features
--------

[](#features)

- Adjustable thresholds
- Adjustable cooldowns
- Events on change
- Any Doctine\\Common\\Cache\\Cache implementation for persistence

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

[](#installation)

Installation is via composer, in the usual manner:

```
$ composer require solution10/circuitbreaker
```

Example usage
-------------

[](#example-usage)

```
