efrane / conditional-process
Conditionally run processes. This is a wrapper for symfony/process.
Fund package maintenance!
eFrane
Installs: 485
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- symfony/process: >=2.7
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is auto-updated.
Last update: 2024-11-06 23:57:36 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.