hypnopompia/process
Composer 安装命令:
composer require hypnopompia/process
包简介
Process is a PHP library to help with the task of running other applications asynchronously from PHP in a pseudo-threaded way.
README 文档
README
Process is a PHP library to help with the task of running other applications asynchronously from PHP in a pseudo-threaded way.
Highlights
Installation
Installing with composer is recommended.
composer require hypnopompia/process
Documentation
Be sure to checkout the examples folder.
<?php require "vendor/autoload.php"; use Hypnopompia\Process; $process = Process::factory("./scripts/simple.sh"); $process->start()->join()->stop(); // Start the process and wait for it to end, then cleanup extract($process->getOutput()); echo "Process Id: " . $process->getPid() . "\n"; echo "STDOUT: " . $stdout . "\n"; echo "STDERR: " . $stderr . "\n"; echo "Exit code: " . $process->getExitcode() . "\n";
统计信息
- 总下载量: 3.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-17