PHPackages                             exan/reactphp-retrier - 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. exan/reactphp-retrier

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

exan/reactphp-retrier
=====================

Simple way to retry reactPHP promises several times

2.0.0(1y ago)11.9k12MITPHP

Since May 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rxak-php/ReactPHP-Retrier)[ Packagist](https://packagist.org/packages/exan/reactphp-retrier)[ RSS](/packages/exan-reactphp-retrier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (8)Used By (2)

ReactPHP retrier
================

[](#reactphp-retrier)

A simple package to retry a reactphp promise several times.

### Example

[](#example)

```
use Exan\Retrier\Retrier;

$retrier = new Retrier();

$result = $retrier->retry(3, fn () => new Promise(function ($resolve, $reject) {
    // This will be executed up to 3 times

    $resolve('Success!');
}));

$result->then(function ($res) {
    echo $res; // 'Success!'
});
```

Or static:

```
use Exan\Retrier\Retrier;

$result = Retrier::attempt(3, fn () => new Promise(function ($resolve, $reject) {
    // This will be executed up to 3 times

    $resolve('Success!');
}));

$result->then(function ($res) {
    echo $res; // 'Success!'
});
```

### Install

[](#install)

```
composer require exan/reactphp-retrier

```

Supported PHP versions
======================

[](#supported-php-versions)

- 8.1
- 8.2
- 8.3
- 8.4

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance40

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~199 days

Total

4

Last Release

514d ago

Major Versions

1.0.2 → 2.0.02024-12-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a13e10cab42385db1f6f4f0bfd96f8c63ec419746648db02b30e7ea02d2f5df?d=identicon)[exan](/maintainers/exan)

---

Top Contributors

[![Exanlv](https://avatars.githubusercontent.com/u/51094537?v=4)](https://github.com/Exanlv "Exanlv (12 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/exan-reactphp-retrier/health.svg)

```
[![Health](https://phpackages.com/badges/exan-reactphp-retrier/health.svg)](https://phpackages.com/packages/exan-reactphp-retrier)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[reactivex/rxphp

Reactive extensions for php.

1.7k3.2M49](/packages/reactivex-rxphp)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[wyrihaximus/react-child-process-messenger

Messenger decorator for react/child-process

32279.4k4](/packages/wyrihaximus-react-child-process-messenger)[wyrihaximus/react-cron

⏱️ Cronlike scheduler running inside the ReactPHP Event Loop

4050.6k](/packages/wyrihaximus-react-cron)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
