vkartaviy/retry
A Laravel retry helper that re-runs failed operations with configurable attempts, delays, and backoff. Wrap closures or jobs to handle transient errors gracefully, with support for conditional retries and custom exception handling.
retry() helper. It slots into any PHP call site with zero dependencies and PSR-friendly conventions, so the technical surface area is small. The core problem is overlap: Laravel ships a native retry() helper (since 5.5) with backoff arrays, sleep configuration, and queue-level jitter. For a Laravel-first team, this package duplicates a first-party capability rather than filling a gap. Its defensible niche is the mixed-PHP case—shared libraries or services running Slim/Symfony/plain PHP alongside Laravel—where a consistent retry primitive has value.retry() already satisfy the requirement? If yes, the business case collapses to the non-Laravel surfaces only.retry(). Shared PHP libraries, non-Laravel services, or SDK code that must not depend on the framework → this package earns its place as a common primitive. If the org is Laravel-only, recommend do not adopt; the value is negative once maintenance is priced in.RetryPolicy interface so the implementation can be swapped for native retry() or a custom solution without touching call sites. Keep a vendored/forked copy under our control to guarantee we can patch.RetryPolicy interface; document the contract.retry().sleep-style delays inside the request path inflate tail latency—confirm whether delays are interruptible and whether queue contexts are supported without tying up workers.How can I help you explore Laravel packages today?