Skip to content

A simple PHP function used to retry failed operations.

License

Notifications You must be signed in to change notification settings

mikefrank-ca/retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retry

A simple PHP function used to retry failed operations. Based on the work done by igorw. On a complete failure, the original exception will be thrown back rather than igorw's FailingTooHardException.

<?php
// retry an operation up to 3 times
$oUsr = Bluefrg/retry(3, function () use ($iId) {
    return User::find($iId);
});

Install

$ composer require bluefrg/retry

About

A simple PHP function used to retry failed operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages