algoyounes/circuit-breaker
A Laravel circuit breaker for protecting your app from failing external services. It prevents cascading failures by tripping after repeated errors, supports configurable thresholds and fallbacks, and helps keep requests resilient during outages.
Consider it when:
Look elsewhere (or build ~150 lines in-house) when:
For executives (one paragraph): We have several features that break completely when a third-party provider has a bad day. This package is a small, standard piece of plumbing that makes those failures fail fast and predictably instead of hanging our servers and degrading the whole product. It's cheap, it's a well-known pattern, and the latest release keeps it compatible with our Laravel upgrade path. Recommendation is a timeboxed evaluation in one integration, not a platform-wide rollout.
For engineering (the real pitch): algoyounes/circuit-breaker gives us a Laravel-native breaker so we stop reimplementing retry/threshold logic per integration. v1.8.1 is a compatibility-only patch — Laravel 13 support, no API changes, no breaking changes, no deprecations — so the upgrade risk is essentially zero and it doesn't constrain our framework roadmap. Two caveats to validate in a spike: (1) where breaker state lives and how that behaves across multiple workers/pods and under Octane, and (2) bus-factor — it's a small project, so we should treat it as a thin abstraction we could vendor or replace in a day, not a deep dependency. Proposed next step: wrap one non-critical outbound integration, instrument it, and confirm the breaker trips on a simulated outage before we touch anything payment-critical.
How can I help you explore Laravel packages today?