PHPackages                             eugenganshorn/guzzle-bundle-retry-plugin - 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. [Framework](/categories/framework)
4. /
5. eugenganshorn/guzzle-bundle-retry-plugin

ActiveLibrary[Framework](/categories/framework)

eugenganshorn/guzzle-bundle-retry-plugin
========================================

Retry Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

1.4.0(2y ago)5415.1k↓28.6%14[1 PRs](https://github.com/EugenGanshorn/GuzzleBundleRetryPlugin/pulls)MITPHPPHP ^8.0

Since Jun 9Pushed 1y agoCompare

[ Source](https://github.com/EugenGanshorn/GuzzleBundleRetryPlugin)[ Packagist](https://packagist.org/packages/eugenganshorn/guzzle-bundle-retry-plugin)[ Docs](https://github.com/EugenGanshorn/GuzzleBundleRetry)[ RSS](/packages/eugenganshorn-guzzle-bundle-retry-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (7)Versions (7)Used By (0)

GuzzleBundleRetryPlugin
=======================

[](#guzzlebundleretryplugin)

[![Build Status](https://camo.githubusercontent.com/3fb2ae37af31f2e4d6aa8744921dad82aaf198202f3706b4348c502cdf5a2f89/68747470733a2f2f7472617669732d63692e6f72672f457567656e47616e73686f726e2f47757a7a6c6542756e646c655265747279506c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/EugenGanshorn/GuzzleBundleRetryPlugin)[![Coverage Status](https://camo.githubusercontent.com/3c660b75ff2346c4f909c570025c31c7ea7892dc41c8747f76856317a09616cc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f457567656e47616e73686f726e2f47757a7a6c6542756e646c655265747279506c7567696e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/EugenGanshorn/GuzzleBundleRetryPlugin?branch=master)

Requirements
------------

[](#requirements)

- PHP 8.0 or above
- [Guzzle Bundle](https://github.com/8p/EightPointsGuzzleBundle)
- [Guzzle Retry middleware](https://github.com/caseyamcl/guzzle_retry_middleware)

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

[](#installation)

Using [composer](https://getcomposer.org/):

##### composer.json

[](#composerjson)

```
{
    "require": {
        "eugenganshorn/guzzle-bundle-retry-plugin": "^1.0"
    }
}
```

##### command line

[](#command-line)

```
$ composer require eugenganshorn/guzzle-bundle-retry-plugin
```

Usage
-----

[](#usage)

### Enable bundle

[](#enable-bundle)

#### Symfony 4

[](#symfony-4)

Plugin will be activated/connected through bundle constructor in `app/AppKernel.php`, like this: Find next lines:

```
foreach ($contents as $class => $envs) {
    if (isset($envs['all']) || isset($envs[$this->environment])) {
        yield new $class();
    }
}
```

and replace them by:

```
foreach ($contents as $class => $envs) {
    if (isset($envs['all']) || isset($envs[$this->environment])) {
        if ($class === \EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle::class) {
            yield new $class([
                new \EugenGanshorn\Bundle\GuzzleBundleRetryPlugin\GuzzleBundleRetryPlugin(),
            ]);
        } else {
            yield new $class();
        }
    }
}
```

#### Symfony 5 &amp; 6

[](#symfony-5--6)

Override the `registerBundles` method in `src/Kernel.php` to connect the plugin to the bundle:

```
public function registerBundles(): iterable
{
    $contents = require $this->getBundlesPath();
    foreach ($contents as $class => $envs) {
        if ($envs[$this->environment] ?? $envs['all'] ?? false) {
            if ($class === EightPointsGuzzleBundle::class) {
                yield new $class([
                    new GuzzleBundleRetryPlugin(),
                ]);
            } else {
                yield new $class();
            }
        }
    }
}
```

### Basic configuration

[](#basic-configuration)

```
# app/config/config.yml // config/packages/eight_points_guzzle.yaml

eight_points_guzzle:
    clients:
        your_client:
            base_url: "http://api.domain.tld"

            # plugin settings
            plugin:
                retry:
                    ~
```

### Advanced configuration

[](#advanced-configuration)

See middleware options: [https://github.com/caseyamcl/guzzle\_retry\_middleware#options](https://github.com/caseyamcl/guzzle_retry_middleware#options)

License
-------

[](#license)

This middleware is licensed under the MIT License - see the LICENSE file for details

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~312 days

Recently: every ~389 days

Total

6

Last Release

971d ago

PHP version history (4 changes)v1.0.0PHP ^7.3

1.2.0PHP ^7.2

1.3.0PHP ^7.3 || ^8.0

1.4.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/734ec9223006c326762bac81a32ff5f833b6121034b5aff3dcecedc6bed96d1a?d=identicon)[EugenGanshorn](/maintainers/EugenGanshorn)

---

Top Contributors

[![EugenGanshorn](https://avatars.githubusercontent.com/u/8372121?v=4)](https://github.com/EugenGanshorn "EugenGanshorn (26 commits)")[![ekosogin](https://avatars.githubusercontent.com/u/13533292?v=4)](https://github.com/ekosogin "ekosogin (3 commits)")[![mihaileu](https://avatars.githubusercontent.com/u/54336101?v=4)](https://github.com/mihaileu "mihaileu (3 commits)")[![sane4ek-2](https://avatars.githubusercontent.com/u/3489323?v=4)](https://github.com/sane4ek-2 "sane4ek-2 (3 commits)")[![Stollie](https://avatars.githubusercontent.com/u/1230903?v=4)](https://github.com/Stollie "Stollie (1 commits)")

---

Tags

bundlecurlguzzleguzzle-bundle-pluginguzzle-middlewarehttphttp-clientmiddlewarepluginretrysymfonysymfony-bundlehttpmiddlewarepluginclientframeworkrestcurlhttp clientweb serviceretry

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/eugenganshorn-guzzle-bundle-retry-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/eugenganshorn-guzzle-bundle-retry-plugin/health.svg)](https://phpackages.com/packages/eugenganshorn-guzzle-bundle-retry-plugin)
```

###  Alternatives

[gregurco/guzzle-bundle-oauth2-plugin

OAuth2 Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

13348.3k](/packages/gregurco-guzzle-bundle-oauth2-plugin)[gregurco/guzzle-bundle-cache-plugin

Cache Plugin for Guzzle Bundle, a PHP HTTP client library and framework for building RESTful web service clients

11372.1k1](/packages/gregurco-guzzle-bundle-cache-plugin)[eightpoints/guzzle-wsse-middleware

WSSE Middleware for Guzzle, a PHP HTTP client library and framework for building RESTful web service clients

312.1M5](/packages/eightpoints-guzzle-wsse-middleware)

PHPackages © 2026

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