byjg/php-daemonize
最新稳定版本:5.0.1
Composer 安装命令:
composer require byjg/php-daemonize
包简介
Transform any class in a *nix daemon process or cron job without changes or refactoring.
README 文档
README
Transform any class in a *nix daemon process or cron job without changes or refactoring.
Features
Allow you to do the following without change your pre-existing class:
- Create a *nix daemon process from any PHP class
- Enable call any get RESt endpoint from the shell script
- Enable call any public method from the shell script
How To:
- Call a PHP method from command line
- Install a PHP class/method call as a daemon
- Call a GET RESt endpoint from command line
- Show the method documentation
- Environment variables
- Play with the service
Install
Daemonize does not need to be associated to your PHP project.
Install locally (preferable):
composer require "byjg/php-daemonize"
Install as a global composer package:
composer global require "byjg/php-daemonize" sudo ln -s /root/.composer/vendor/bin/daemonize /usr/local/bin/daemonize # If you want to share this installation with another users consider use the command `chmod a+x /root`. # The root directory will remain unreadable for them, but you'll can execute the script "daemonize".
Dependencies
flowchart TD
byjg/daemonize --> symfone/console
Loading
统计信息
- 总下载量: 10.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-30