PHP Package: caseyamcl/guzzle_retry_middleware

Guzzle middleware for automatic retrying of failed HTTP requests with exponential backoff strategy

Current Version: 2.12.1
Last Updated: 2024-12-05
PHP Requirement: ^7.1|^8.0
Dependencies:
guzzle/guzzle
⚠️ To ensure full functionality, the above dependencies might be required.

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.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.12.1

Download Download v2.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.