Skip to content

eFrane/conditional-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Conditionally run processes

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages