slava-vishnyakov / proc-runner
There is no license information available for the latest version (0.2.2) of this package.
Process runner
0.2.2
2015-07-11 09:19 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is auto-updated.
Last update: 2025-03-21 21:25:50 UTC
README
This is very alpha quality.
$r = new ProcRunner\LocalRunner('redis-cli'); try { $r->send("GET test\n"); print "Got line: " . $r->readLine() . "\n"; $r->send("SET test 1\nGet test\n"); print "Got line: " . $r->readLine() . "\n"; print "Got line: " . $r->readLine() . "\n"; print "Got line: " . $r->readLineIfAny() . "\n"; $r->send("fds\n"); print "Got stderr line: " . $r->readStderrLineIfAny() . "\n"; $code = $r->close(); } catch (Exception $e) { } print "Got return value: " . $r->getReturnValue() . $r->readStderrLineIfAny() . "\n";