PHP Classes
elePHPant
Icontem

PHP Retry Library: Keep calling a function until it meets a condition

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-02-06 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 259 All time: 7,568 This week: 503Up
Version License PHP version Categories
retryclass 1.0.0MIT/X Consortium ...5PHP 5, Time and Date, Language
Description Author

This simple class can keep calling a function until it meets a condition.

It takes a given callback function and calls it to check if it returns a value that states that a certain condition is meet.

Until the condition state is reached, the class keeps calling the function after a given period of time, which by default is one minute.

Innovation Award
PHP Programming Innovation award nominee
March 2018
Number 3
Sometimes applications need to wait for conditions that may take some time to happen, like for instance waiting for a given period to pass until you execute a periodic task.

This package can help implementing these tasks that need to be repeated after a given time interval until a certain condition is met.

Manuel Lemos
  Performance   Level  
Name: Arnel Labarda <contact>
Classes: 5 packages by
Country: Philippines Philippines
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example usage
Plain text file retry-class.php Class retry class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:259
This week:0
All time:7,568
This week:503Up