sweikenb/pcntl
最新稳定版本:v7.1.1
Composer 安装命令:
composer require sweikenb/pcntl
包简介
PCNTL process control library
README 文档
README
Simple and easy to use thread-based process manager for PHP based on default PCNTL and POSIX functions.
Further information:
Installation
composer require "sweikenb/pcntl"
Basic Usage
use Sweikenb\Library\Pcntl\ProcessManager; use Sweikenb\Library\Pcntl\Api\ChildProcessInterface; use Sweikenb\Library\Pcntl\Api\ParentProcessInterface; use Sweikenb\Library\Pcntl\Api\ProcessOutputInterface; $pm = new ProcessManager(); $pm->runProcess(function(ChildProcessInterface $child, ParentProcessInterface $parent, ProcessOutputInterface $output) { $output->stdout(sprintf('Hello World from PID: %d', $child->getId())); });
统计信息
- 总下载量: 12.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-29