PHPackages                             ksaveras/circuit-breaker-bundle - 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. [API Development](/categories/api)
4. /
5. ksaveras/circuit-breaker-bundle

ActiveSymfony-bundle[API Development](/categories/api)

ksaveras/circuit-breaker-bundle
===============================

Circuit Breaker Symfony Bundle

1.0.0(2y ago)21[3 PRs](https://github.com/ksaveras/circuit-breaker-bundle/pulls)MITPHPPHP ^8.1CI passing

Since May 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ksaveras/circuit-breaker-bundle)[ Packagist](https://packagist.org/packages/ksaveras/circuit-breaker-bundle)[ RSS](/packages/ksaveras-circuit-breaker-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (7)Used By (0)

Circuit Breaker Symfony Bundle
==============================

[](#circuit-breaker-symfony-bundle)

[![Travis (.org) branch](https://camo.githubusercontent.com/2b248dd8715b40bf3d75b3d4066c52673439f8561cb34cda90113b73081a81d8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b736176657261732f636972637569742d627265616b65722d62756e646c652f6d6173746572)](https://camo.githubusercontent.com/2b248dd8715b40bf3d75b3d4066c52673439f8561cb34cda90113b73081a81d8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b736176657261732f636972637569742d627265616b65722d62756e646c652f6d6173746572)[![Code Climate maintainability](https://camo.githubusercontent.com/89f7e7ae37ec4b0819d2a0fa345f418c1609ddce0998ff4e7d5447d74bf2e8d0/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6b736176657261732f636972637569742d627265616b65722d62756e646c65)](https://camo.githubusercontent.com/89f7e7ae37ec4b0819d2a0fa345f418c1609ddce0998ff4e7d5447d74bf2e8d0/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6b736176657261732f636972637569742d627265616b65722d62756e646c65)[![GitHub](https://camo.githubusercontent.com/320602105654723b89b3934c732212d56d9acaff782c5afced26bed6f6a1e6ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b736176657261732f636972637569742d627265616b65722d62756e646c65)](https://camo.githubusercontent.com/320602105654723b89b3934c732212d56d9acaff782c5afced26bed6f6a1e6ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b736176657261732f636972637569742d627265616b65722d62756e646c65)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require ksaveras/circuit-breaker-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require ksaveras/circuit-breaker-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Ksaveras\CircuitBreakerBundle\KsaverasCircuitBreakerBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

```
# config/packages/circuit_breaker.yaml
ksaveras_circuit_breaker:
    circuit_breakers:
        cb_name:
            storage: 'cache'
            failure_threshold: 3
            retry_policy:
                exponential:
                    reset_timeout: 60
                    maximum_timeout: 86400

    storage:
        in_memory: ~
        cache: 'pool_service_id'
        my_storage: '@storage_service'
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~574 days

Total

3

Last Release

1053d ago

Major Versions

v0.2.0 → 1.0.02023-06-24

PHP version history (3 changes)v0.1.0PHP ^7.2.5

v0.2.0PHP ^7.4|^8.0

1.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/654934f82b6b26fb089607ff8b3fd69837706fe81ae8355c97923f09f2c66741?d=identicon)[ksaveras](/maintainers/ksaveras)

---

Top Contributors

[![ksaveras](https://avatars.githubusercontent.com/u/485111?v=4)](https://github.com/ksaveras "ksaveras (40 commits)")[![release-automaton[bot]](https://avatars.githubusercontent.com/in/341347?v=4)](https://github.com/release-automaton[bot] "release-automaton[bot] (1 commits)")

---

Tags

bundlecircuit-breakercircuit-breaker-patternerror-handlingfault-tolerancemicroservicesphpsymfony-bundlesymfony-flexapierror handlingSymfony Bundlemicroservicescircuit breakerfault tolerancecircuit breaker bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ksaveras-circuit-breaker-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ksaveras-circuit-breaker-bundle/health.svg)](https://phpackages.com/packages/ksaveras-circuit-breaker-bundle)
```

###  Alternatives

[ackintosh/ganesha

PHP implementation of Circuit Breaker pattern

6613.9M13](/packages/ackintosh-ganesha)[adrenalinkin/swagger-resolver-bundle

Provides possibility for validate data according to Swagger documentation

1013.3k](/packages/adrenalinkin-swagger-resolver-bundle)

PHPackages © 2026

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