PHP code example of herrera-io / service-process
1. Go to this page and download the library: Download herrera-io/service-process library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
herrera-io / service-process example snippets
use Herrera\Service\Container;
use Herrera\Service\Process\ProcessServiceProvider;
$container = new Container();
$container->register(new ProcessServiceProvider());
$process = $container['process']('echo');
$process
->arg('Hello, ')
->arg('Guest!')
->output($process->stream(STDOUT))
->run();