PHP Classes

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)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 181 This week: 1All time: 8,700 This week: 560Up
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: 23 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 229912 in Nigeria Nigeria
Week rank: 52 Up5 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 9x

  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:181
This week:1
All time:8,700
This week:560Up