Download the PHP package yaknet/circuit-breaker without Composer
On this page you can find all versions of the php package yaknet/circuit-breaker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yaknet/circuit-breaker
More information about yaknet/circuit-breaker
Files in yaknet/circuit-breaker
Download yaknet/circuit-breaker
More information about yaknet/circuit-breaker
Files in yaknet/circuit-breaker
Vendor yaknet
Package circuit-breaker
Short Description A robust and resilient Circuit Breaker implementation for PHP applications.
License MIT
Homepage https://github.com/yaknet/circuit-breaker
Package circuit-breaker
Short Description A robust and resilient Circuit Breaker implementation for PHP applications.
License MIT
Homepage https://github.com/yaknet/circuit-breaker
Please rate this library. Is it a good library?
Informations about the package circuit-breaker
YakNet \ Circuit Breaker
A robust, resilient, and lightweight Circuit Breaker implementation for modern PHP applications. Prevent cascading failures and make your system more reliable when interacting with external APIs or microservices.
๐ Features
- Modern PHP 8.1+: Leverages Enums, Readonly properties, and strictly typed logic.
- Fail-Fast Strategy: Immediately blocks requests to failing services to save resources and allow recovery.
- Three-State Management: Full support for
CLOSED,OPEN, andHALF_OPENstates. - Storage Agnostic: Comes with
FileStorageout of the box, with an interface to easily add Redis or Memcached. - Developer Friendly: Simple API and zero-dependency core.
๐ฆ Installation
๐ Usage
Basic Example
๐ง Core States
| State | Description |
|---|---|
| CLOSED | Normal operation. Requests flow through to the service. |
| OPEN | Failure threshold reached. Requests fail immediately without hitting the service. |
| HALF_OPEN | Trial period. A limited number of requests are allowed to check if the service recovered. |
๐งช Testing
๐ License
The MIT License (MIT). Please see License File for more information.
Developed with โค๏ธ by YakNet
All versions of circuit-breaker with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package yaknet/circuit-breaker contains the following files
Loading the files please wait ...