https://github.com/efrane/conditional-process
Conditionally run processes
https://github.com/efrane/conditional-process
Last synced: 5 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T13:08:23.000Z (almost 8 years ago)
- Last Synced: 2025-01-06T15:18:45.256Z (6 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
[](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.