PHPackages                             orangesoft/backoff - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. orangesoft/backoff

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

orangesoft/backoff
==================

Back-off algorithm implementation.

5.0.1(1y ago)25563MITPHPPHP ^8.1

Since Feb 3Pushed 1y ago2 watchersCompare

[ Source](https://github.com/denisyukphp/backoff)[ Packagist](https://packagist.org/packages/orangesoft/backoff)[ RSS](/packages/orangesoft-backoff/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (7)Versions (19)Used By (0)

BackOff
=======

[](#backoff)

[![Build Status](https://camo.githubusercontent.com/c1fa64676360271ccd9ed044c2d726891dc61726d2924bb44e642b268df14824/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656e697379756b7068702f6261636b6f66662f63692e796d6c3f6272616e63683d6d61696e267374796c653d706c6173746963)](https://github.com/denisyukphp/backoff/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/cf6a8cee46d00dcbc3d5208a8809bf90db63fec4c483e73d9c356a03214ed64f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f72616e6765736f66742f6261636b6f66663f7374796c653d706c6173746963)](https://packagist.org/packages/orangesoft/backoff)[![Packagist PHP Version Support](https://camo.githubusercontent.com/fd072889077647410d81e4583ef228a41814236b50c53b91b9586356ae7a617f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6f72616e6765736f66742f6261636b6f66663f7374796c653d706c617374696326636f6c6f723d383839324246)](https://packagist.org/packages/orangesoft/backoff)[![Total Downloads](https://camo.githubusercontent.com/ddc927e51214b4bbc5f28abe83e5b81a7ccb380ea2ea856318e037f5690e3283/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f72616e6765736f66742f6261636b6f66663f7374796c653d706c6173746963)](https://packagist.org/packages/orangesoft/backoff)[![License](https://camo.githubusercontent.com/db92e24f6426058cc6fb0f4b4ea5efd6cab951f202d5cdbef503bc43645c450d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f72616e6765736f66742f6261636b6f66663f7374796c653d706c617374696326636f6c6f723d343238463745)](https://packagist.org/packages/orangesoft/backoff)

Back-off algorithm implementation.

Installation
------------

[](#installation)

You can install the latest version via [Composer](https://getcomposer.org/):

```
composer require orangesoft/backoff

```

This package requires PHP 8.1 or later.

Quick usage
-----------

[](#quick-usage)

Configure `Orangesoft\BackOff\Retry\Retry::class`, any of back-off classes, and `Orangesoft\BackOff\Retry\ExceptionClassifier\ExceptionClassifier::class` to retry a business logic when an exception is thrown:

```
