2017 © Pedro Peláez
 

library circuitbreaker

Simple circuitbreaker class that uses Doctrine\Cache to persist state

image

solution10/circuitbreaker

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  • Thursday, August 25, 2016
  • by alexgisby
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2,585 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Solution10\CircuitBreaker

Simple circuit breaker class., (*1)

Build Status Latest Stable Version Total Downloads License, (*2)

Features

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

Installation

Installation is via composer, in the usual manner:, (*3)

$ composer require solution10/circuitbreaker

Example usage

<?php

$persistence = new \Doctrine\Common\Cache\ArrayCache();
$breaker = new \Solution10\CircuitBreaker\CircuitBreaker('my_backend_service', $persistence);

if ($breaker->isClosed()) {
    $response = doSomething();
    if ($response) {
        $breaker->success();
    } else {
        $breaker->failure();
    }
} else {
    gracefullyDegrade();
}

Userguide

Check out the Wiki, (*4)

(or the /docs folder in the repo), (*5)

PHP Requirements

  • PHP >= 5.5

Author

Alex Gisby: GitHub, Twitter, (*6)

License

MIT, (*7)

Contributing

Contributors Notes, (*8)

The Versions

25/08 2016

dev-master

9999999-dev

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Gisby

component circuit breaker circuitbreaker

25/08 2016

v1.2.0

1.2.0.0

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Gisby

component circuit breaker circuitbreaker

25/08 2016

dev-feature/get-failures

dev-feature/get-failures

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Gisby

component circuit breaker circuitbreaker

05/07 2016

v1.1.0

1.1.0.0

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Gisby

component circuit breaker circuitbreaker

15/05 2016

v1.0.0

1.0.0.0

Simple circuitbreaker class that uses Doctrine\Cache to persist state

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Gisby

component circuit breaker circuitbreaker