Skip to content

liuzhioic/php-timing-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

php-timing-task

1.启动进程

php ./TaskProcess.php 

2.示例


$task             = new Task($task_id);
$task->url  = 'https://www.baidu.com';  //支持url回调
$task->interval   = 10; //延迟多久执行
$task->exec_count = 1; //0 无限循环,1最起码执行一次
$task->start();

About

原生PHP实现定时任务

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages