React PHP Timer Loop: Call functions after a given time like JavaScript

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2020-07-15 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 151 This week: 6All time: 8,838 This week: 54Up
Version License PHP version Categories
reactphp-timers 1.0.0The PHP License5PHP 5, Time and Date
Description Author

This package can call functions after a given time like JavaScript.

It provides functions that use the ReactPHP library to allow applications to define callback functions that will be invoked after a given period of time. Currently it provides the functions:

- setTimeout to invoke the callback code once after the interval time
- setInterval to invoke the callback code at regular periods of time of a given length
- clearTimeout to cancel a given timer that was started by the setTimeout function
- clearInterval to cancel a given timer that was started by the setInterval function

Innovation Award
PHP Programming Innovation award nominee
July 2020
Number 9
Many PHP developers also know well the JavaScript language. One possibility that JavaScript allows is to execute a piece of code after a given interval of time using functions like setTimeout and setInterval.

This package provides a PHP implementation of the JavaScript setTimeout and setInterval functions using ReactPHP.

Manuel Lemos
Picture of Ahmad Mustapha
Name: Ahmad Mustapha <contact>
Classes: 6 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageexamples (6 files)
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file clearInterval.php Example Example script
  Accessible without login Plain text file clearTimeout.php Example Example script
  Accessible without login Plain text file clearTimer.php Example Example script
  Accessible without login Plain text file getLoop.php Example Example script
  Accessible without login Plain text file setInterval.php Example Example script
  Accessible without login Plain text file setTimeout.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file Functions.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:151
This week:6
All time:8,838
This week:54Up

For more information send a message to info at phpclasses dot org.