Skip to content
/ Process Public

A lightweight PHP wrapper for interactive subprocesses

License

Notifications You must be signed in to change notification settings

mre/Process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process

A lightweight wrapper around PHP's subprocess handling.
Especially useful for interactive commands.

Example

require_once __DIR__.'/../vendor/autoload.php';

use \mre\Process;

$process = new Process('cat');
$process->send('hello');
$process->send('world');

foreach ($process->receive() as $s)
{
    echo $s . PHP_EOL;
}

Alternatives

Fabien Potencier's Process library is awesome for non-interactive processes,
although it has grown quite big.

Maintainers

This project was initially started by Christian Lück. It has been deprecated some time ago but I thought it's useful
and picked up development again.

About

A lightweight PHP wrapper for interactive subprocesses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages