PHPackages                             edouardcourty/retryable-command - 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. edouardcourty/retryable-command

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

edouardcourty/retryable-command
===============================

Retry commands if they fail, based on Symfony Commands

1.0.0(2y ago)06ISCPHPPHP &gt;=7.4

Since Nov 3Pushed 2y agoCompare

[ Source](https://github.com/EdouardCourty/retryable-command)[ Packagist](https://packagist.org/packages/edouardcourty/retryable-command)[ RSS](/packages/edouardcourty-retryable-command/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Retryable Commands
==================

[](#retryable-commands)

[![PHP CI - Full](https://github.com/EdouardCourty/retryable-command/actions/workflows/php-ci-full.yml/badge.svg)](https://github.com/EdouardCourty/retryable-command/actions/workflows/php-ci-full.yml)

This library adds a retry feature to Symfony Commands.

### Usage

[](#usage)

To make a command retryable, make it extend `RetryableCommand\Command\RetryableCommand`.
To configure how many retries the command will do, you can either:

- Use the `setMaxRetry` command inside the `configure` method
- Use the `max-retry` CLI option when calling the command

The sleep timeout is calculated using the `retryTimeout` that has to be implemented.
If you don't want to wait between retries, simply return 0.

This method accepts the current retry as a parameter, making it possible to compute dynamic retry timeouts depending on how many retries have been done already.

### Contributing

[](#contributing)

If you wish to contribute to this project, feel free to submit a PR explaining your changes, and make sure to test your addition.
The pipeline has to be passing.

**© - Edouard Courty**

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

919d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3150ffb131124e5f03272d9ed8084c514f18fff6aafff1a5973c016993f6ef66?d=identicon)[ecourty](/maintainers/ecourty)

---

Top Contributors

[![EdouardCourty](https://avatars.githubusercontent.com/u/37371516?v=4)](https://github.com/EdouardCourty "EdouardCourty (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/edouardcourty-retryable-command/health.svg)

```
[![Health](https://phpackages.com/badges/edouardcourty-retryable-command/health.svg)](https://phpackages.com/packages/edouardcourty-retryable-command)
```

###  Alternatives

[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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