nir / circuit-breaker
This package is abandoned and no longer maintained.
No replacement package was suggested.
dev-master
2017-10-25 15:40 UTC
Requires
- php: ~7.0
Requires (Dev)
- phpspec/phpspec: ^4.1
- phpunit/phpunit: ^6.4
This package is auto-updated.
Last update: 2023-06-14 19:38:55 UTC
README
This package is inspired by ejsmont-artur/php-circuit-breaker
.
Install
composer require nir/circuit-breaker
How to use?
You need to write (or generate) decorator classes to wrap objects on which you want to apply the circuit breaker.
How it works?
You can check this proposal for Zend framework if you want to know how it works.
Contribute
Here are some useful composer scripts you might want to use to ease development:
composer run docker:build # It's automatically run by other scripts composer run docker:install # Run composer install in a container composer run docker:tests # Run phpspec and phpunit in a container composer run tests # Run phpspec and phpunit $(composer run docker:run) # Run an interactive shell in a new container (composer run docker:build should be called first)