Download the PHP package guanhui07/timer without Composer
On this page you can find all versions of the php package guanhui07/timer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package timer
timer
php定时器,参考了workerman源码 实现一个单进程(守护进程)的定时器。
原理
- 利用pcntl,守护进程化
- 利用stream_select的超时机制,来实现sleep,如果有event扩展的话,优先使用event扩展
- 定时器是时间堆的方式实现,利用php的spl的优先队列
install
use
./test/index.php
All versions of timer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-pcntl Version *
ext-posix Version *
ext-zend-opcache Version *
ext-bcmath Version *
ext-pcntl Version *
ext-posix Version *
ext-zend-opcache Version *
ext-bcmath Version *
The package guanhui07/timer contains the following files
Loading the files please wait ....