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.1.0(2mo ago)12.0k12MITPHPPHP ^8.1CI passing

Since May 2Pushed 2mo 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 today

READMEChangelog (5)Dependencies (12)Versions (10)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+

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance83

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~268 days

Total

5

Last Release

84d ago

Major Versions

1.0.2 → 2.0.02024-12-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50845695?v=4)[exan](/maintainers/exan)[@exan](https://github.com/exan)

---

Top Contributors

[![Exanlv](https://avatars.githubusercontent.com/u/51094537?v=4)](https://github.com/Exanlv "Exanlv (15 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.5k196.2M3.1k](/packages/composer-composer)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[react/react

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

9.1k3.7M65](/packages/react-react)[reactivex/rxphp

Reactive extensions for php.

1.7k3.3M55](/packages/reactivex-rxphp)[internal/dload

Downloads binaries.

102212.3k19](/packages/internal-dload)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k420.9k26](/packages/team-reflex-discord-php)

PHPackages © 2026

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