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

v1.1.2 2017-02-26 12:32 UTC

This package is auto-updated.

Last update: 2024-12-07 00:09:08 UTC


README

Build Status

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.