18/07
2018
This documentation is written along the guidelines of educational grade documentation discussed in the infracamp project. Please ask and document issues., (*1)
exec()
phore_exec, (*2)
$return = phore_exec("ls -l :path", ["path"=>"some Path "]) echo $return;
phore_proc, (*3)
$result = phore_proc("ls -l *", ["/some/path"])->wait(); echo "\nStderr: " . $result->getSTDERRContents(); echo "\nStdOut: " . $result->getSTDOUTContents();
$result = phore_proc("ls -l *", ["/some/path"]) ->watch(1, function ($data, $len, PhoreProc $proc) use () { if ($data === null) { echo "End of stream"; return; } echo "Steam in: $data"; })->wait(); echo "\nStderr: " . $result->getSTDERRContents();
We suggest using composer:, (*4)
composer require phore/system