Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/efrane/conditional-process

Conditionally run processes
https://github.com/efrane/conditional-process

Last synced: about 2 months ago
JSON representation

Conditionally run processes

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/eFrane/conditional-process.svg?branch=master)](https://travis-ci.org/eFrane/conditional-process)

# Conditional Process

Conditionally run processes.

## Installation

This package is available on composer. You can install it with
`composer require efrane/conditional-process`.

## Usage

```php
$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.