PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 182 All time: 8,697 This week: 69Up
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: 24 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 226511 in Nigeria Nigeria
Week rank: 49 Up3 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 9x

  Files folder image Files (9)  
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 (9)  /  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 (9)  /  src  
File Role Description
  Accessible without login Plain text file Functions.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:182
This week:0
All time:8,697
This week:69Up