herrera-io / service-process
This package is abandoned and no longer maintained.
No replacement package was suggested.
A service provider for Symfony Process.
1.1.2
2013-05-02 17:13 UTC
Requires
- php: >=5.3.3
- herrera-io/service-container: 1.*
- symfony/process: >=2.1,<2.3-dev
Requires (Dev)
- herrera-io/phpunit-test-case: 1.*
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2021-12-07 01:35:47 UTC
README
Process Service Provider registers the Symfony Process builder as a service for the Herrera.io service container. Also included is a simplified process builder.
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();