efrane/conditional-process

Conditionally run processes. This is a wrapper for symfony/process.

Maintainers

Package info

github.com/eFrane/conditional-process

Type:package

pkg:composer/efrane/conditional-process

Fund package maintenance!

eFrane

Statistics

Installs: 489

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-07 03:17:47 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.