caseyamcl/guzzle_retry_middleware
Guzzle middleware that automatically retries failed HTTP requests with configurable delays and retry conditions. Helps handle transient network errors, 5xx responses, and rate limiting with backoff strategies, improving resilience without changing client code.
php_codesniffer and phpstan packagesusleep. This prevents blocking when running parallel requests (thanks @teandr).action/checkout and action/cachedoRetry method (for PHP 8.4)should_retry_callback argument when triggered (thanks @Nicolai-)..scrutinizer.yml file (not used anymore)on_retry_callback argument when triggered by onRejected (thanks @ViktorCollin)give_up_after_secs expires, and fail quickly (thanks @rubentebogt)should_retry_callback parameter.README updatesphpstan/extension-installerXDEBUG_MODE environment variable is set when running PHPUnitgive_up_after_secs parameterGuzzleRetryMiddleware::__construct method final$options parameter comments PHPStan was complaining aboutshouldRetryHttpResponse values assume that the $response parameter is not null$dateFormat is never NULL or empty string in deriveTimeoutFromHeaderREADME.mdRetry-After header via new retry_after_date_format optionmax_allowable_timeout_secs option to set a ceiling on the maximum time the client is willing to wait between requestsGithub Build.travis.yml build support (switched to Github Actions)Retry-After headers (thanks @andrewdalpino)composer.json.gitignore (minor)phpunit.xml.dist to latest spec.travis.ymlcomposer.jsondev-master to 2.0-dev in composer.json.travis.yml (thanks @alexeyshockov)composer.json (thanks @alexeyshockov)declare(strict_types=1) in unit test filedeclare(strict_types=1) and method return signatures.travis.yml$request and $options variables are now passed by reference in the retry callback to allow for modification (thanks @Krunch!).travis.yml fileexpose_retry_header and retry_header options for debugging purposes (thanks, @coudenysj)composer.json (match Guzzle composer.json PHPUnit requirements)testRetryOccursWhenStatusCodeMatchesProvider
→ providerForRetryOccursWhenStatusCodeMatches)phpunit.xml.dist specification so that PHPUnit no longer emits warningshhvm tests in Travis CI; they were causing builds to failretry_enabled parameter to allow quick disable of retry on specific requestsdefault_retry_multiplier in order to implement custom delay logicretry_on_timeout option)on_retry_callback callback. Response object is no longer guaranteed to be present,
so the callback signature now looks like this:
(int $retryCount, int $delayTimeout, RequestInterface $request, array $options, ResponseInterface|null $response).How can I help you explore Laravel packages today?