vvondra/php-daemon
Composer 安装命令:
composer require vvondra/php-daemon
包简介
A base implementation of a UNIX daemon in PHP
README 文档
README
If you're comfortable with PHP and want to have a PHP script running as a daemon (meaning you can leave it running in the background, stop, restart it and check it's status) this class provides a basic implementation of the necessary features.
Running a script as a daemon can be more convenient than a CRON triggered task and you can be sure it will be running in only one process at a time..
Simply subclass it and implement the run() method. You might find the React Event Loop useful if you want an alternative to sleeping.
统计信息
- 总下载量: 158
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-08-31