Download the PHP package mortenscheel/task-flow without Composer
On this page you can find all versions of the php package mortenscheel/task-flow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mortenscheel/task-flow
More information about mortenscheel/task-flow
Files in mortenscheel/task-flow
Download mortenscheel/task-flow
More information about mortenscheel/task-flow
Files in mortenscheel/task-flow
Vendor mortenscheel
Package task-flow
Short Description Pipeline for nested console tasks
License MIT
Package task-flow
Short Description Pipeline for nested console tasks
License MIT
Please rate this library. Is it a good library?
Informations about the package task-flow
Task Flow
Build dynamic nested console workflows with ease.
Installation
You can install the package via composer:
Getting started
Example flow
Laravel example
Standalone example
Configuration
The default configuration is as follows:
Laravel
You can publish the config file with:
Standalone
You can pass a custom configuration array to the ConsoleRenderer
constructor:
Task Context
The Context
is a shared object, which is passed to all task actions.
set(string $key, mixed $value): void
- Set a value in the context for use by future tasks.get(string $key): mixed
- Get a value from the context, provided by previous tasks.has(string $key): bool
- Check if a key exists in the context.increment(string $key, int $amount = 1): void
- Increment a value in the context.skip(): void
- Skip the current task, including all child tasks.updateTitle(string $title): void
- Update the title of the current task.abort(): void
- Abort the entire task flow. This has the same effect as throwing an exception.interactive(callable $callback): mixed
- Allows for user interaction, without interfering with the task flow status output.
All versions of task-flow with dependencies
PHP Build Version
Package Version
The package mortenscheel/task-flow contains the following files
Loading the files please wait ....