Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/efrane/conditional-process
- Owner: eFrane
- Created: 2016-02-08T16:43:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T13:08:23.000Z (about 7 years ago)
- Last Synced: 2024-05-03T03:50:15.224Z (8 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.