PHP Package: caseyamcl/guzzle_retry_middleware
Guzzle middleware for automatic retrying of failed HTTP requests with exponential backoff strategy
Package Description
The guzzle_retry_middleware PHP library facilitates automatic retries for failed HTTP requests through an exponential backoff mechanism. This middleware seamlessly integrates with Guzzle, enhancing the reliability and resilience of your application's network communication. With configurable retry options and exponential backoff support, this library helps mitigate transient failures and improve overall system stability and performance.
Download Latest Version: 2.12.1

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/caseyamcl/guzzle_retry_middleware/2.12.1/loader.php';
require_once 'libs/guzzle/guzzle/7.9.3/loader.php';
use GuzzleHttp\Client;
use CaseyAMCl\GuzzleRetryMiddleware\RetryMiddleware;
use GuzzleHttp\HandlerStack;
$obj = new Client();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.