pilat/daemonizer

此包已被废弃,不再维护。未建议替代包。

PHP守护进程器

1.0.3 2014-10-27 18:21 UTC

This package is not auto-updated.

Last update: 2020-01-20 03:47:23 UTC


README

为创建长时间运行的PHP守护进程提供简单方法。

Build Status

如何使用

  • 您的类必须实现 "DaemonizerInterface" 接口。
  • 在配置或根目录下创建 cli-daemonizer.php 文件
  • 启动守护进程,使用命令 ./bin/daemonizer start

cli-daemonizer.php 示例文件包含

<?php

return array(
    new CronJobExample(),
    new TickExample()
);