Download the PHP package nhlm/pipechain without Composer
On this page you can find all versions of the php package nhlm/pipechain. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nhlm/pipechain
More information about nhlm/pipechain
Files in nhlm/pipechain
Package pipechain
Short Description A linear chainable pipeline pattern implementation with fallbacks
License MIT
Informations about the package pipechain
PipeChain
A linear chainable pipeline pattern implementation with fallbacks.
What is a linear pipeline
A linear pipeline is a object that stacks callbacks and provides a processing logic to process a payload thru the callback stack, form the first to the last.
Processors
PipeChain comes out of the box with 4 different processors:
The common invoker processor
The common invoker processor implements a processing of the queue that considers the provided fallback callback as the successor of a failed stage callback.
The common invoker processor is the default processor.
Example:
The naive invoker processor
The naive invoker processor implements a processing of the queue that ignores the provided fallback callback.
Example:
The loyal interface invoker processor
The loyal interface invoker processor implements a processing of the queue that acts like a common invoker processor with an additional interface check of each payload change.
The interface check has 2 modes:
LoyalInterfaceInvokerProcessor::INTERRUPT_ON_MISMATCH
forces the processor to pass the throwables to the next scope.LoyalInterfaceInvokerProcessor::RESET_ON_MISMATCH
forces the processor to use the previous payload instead.
Example:
The loyal type invoker processor
The loyal type invoker processor implements a processing of the queue that acts like the loyal interface invoker processor but with type checking of each payload change.
The type check has 2 modes:
LoyalInterfaceInvokerProcessor::INTERRUPT_ON_MISMATCH
forces the processor to pass the throwables to the next scope.LoyalInterfaceInvokerProcessor::RESET_ON_MISMATCH
forces the processor to use the previous payload instead.
Example:
Booting own implementations
Chaining Pipelines
Maintainer, State of this Package and License
Those are the Maintainer of this Package:
This package is released under the MIT license. A copy of the license is placed at the root of this repository.
The State of this Package is unstable unless unit tests are added.
Todo
- Adding Unit Tests