hypnopompia / process
Process is a PHP library to help with the task of running other applications asynchronously from PHP in a pseudo-threaded way.
Installs: 3 022
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >= 5.3.2
This package is not auto-updated.
Last update: 2025-01-31 02:57:16 UTC
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";