efrane / conditional-process
Conditionally run processes. This is a wrapper for symfony/process.
Package info
github.com/eFrane/conditional-process
Type:package
pkg:composer/efrane/conditional-process
Fund package maintenance!
v1.1.2
2017-02-26 12:32 UTC
Requires
- symfony/process: >=2.7
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2026-02-07 03:17:47 UTC
README
Conditional Process
Conditionally run processes.
Installation
This package is available on composer. You can install it with
composer require efrane/conditional-process.
Usage
$process = new ConditionalProcess('cat README.md', new FileExists('README.md')); $process->execute($readmeText); // $readmeText will contain the contents of README.md if that file exists
License
This package is available under the terms of the MIT license.