Download the PHP package andreas-weber/php-runner without Composer
On this page you can find all versions of the php package andreas-weber/php-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download andreas-weber/php-runner
More information about andreas-weber/php-runner
Files in andreas-weber/php-runner
Download andreas-weber/php-runner
More information about andreas-weber/php-runner
Files in andreas-weber/php-runner
Vendor andreas-weber
Package php-runner
Short Description Library to simplify the implementation of sophisticated interdependent tasks.
License MIT
Homepage https://github.com/andreas-weber/php-runner
Package php-runner
Short Description Library to simplify the implementation of sophisticated interdependent tasks.
License MIT
Homepage https://github.com/andreas-weber/php-runner
Please rate this library. Is it a good library?
Informations about the package php-runner
andreas-weber/php-runner
Library to simplify the implementation of sophisticated interdependent tasks.
Features
- Encapsulate logic in different tasks instead of writing spaghetti code.
- Chain task runners to describe dependencies between tasks.
- Pass a payload to task runner. Payload gets passed from task to task.
- Skip single tasks during runtime by implementing unless() method.
- Use setUp() and tearDown() on each task to prepare and cleanup task execution.
- Call retry() in task to use task runners retry handling.
- Call skip() in task to skip task processing.
- Call fail() in task to fail complete task run.
- Use events to hook in custom logic during task run.
Events
This library has an internal event system, which you can use to react with custom hooks during execution. The following events are available:
- runner.start
- runner.success
- runner.failure
- runner.task.start
- runner.task.success
- runner.task.failure
- runner.task.retry
- runner.task.skip
- runner.task.unless
Requirements
Check shipped composer.json.
Installation
Simply add a dependency on andreas-weber/php-runner
to your project's Composer composer.json
file.
Examples
- Simple Task-Runner
- Task-Runner with retry handling
- Using setUp() and tearDown()
- Using success callback
- Skip task under certain circumstances
- Chain task runners
- Raise exception, when exit code is not zero
Developer
Environment
Boot:
Enter virtual machine:
Run tests:
Build targets
Thoughts
Pull requests are highly appreciated. Built with love. Hope you'll enjoy.. :-)
All versions of php-runner with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-reflection Version *
ext-spl Version *
psr/log Version ~1.0
monolog/monolog Version ~1.0
ext-reflection Version *
ext-spl Version *
psr/log Version ~1.0
monolog/monolog Version ~1.0
The package andreas-weber/php-runner contains the following files
Loading the files please wait ....