Download the PHP package mr-rijal/laravel-pipeline without Composer
On this page you can find all versions of the php package mr-rijal/laravel-pipeline. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mr-rijal/laravel-pipeline
More information about mr-rijal/laravel-pipeline
Files in mr-rijal/laravel-pipeline
Package laravel-pipeline
Short Description Lightweight workflow and automation pipeline for Laravel
License MIT
Informations about the package laravel-pipeline
Laravel Pipeline
Lightweight, enterprise-ready pipeline workflow engine for Laravel Supports sequential, parallel, and flow-based execution with debug timeline, retries, timeouts, and queued parallelism.
π¦ Installation
Install via Composer:
Laravel auto-discovers the service provider. No manual registration required.
π οΈ Features
- Sequential, parallel, and flow pipelines
- Debug timeline with per-step execution metrics
- Retry failed steps with configurable attempts
- Step timeout support
- Parallel execution with optional queue (Redis/Horizon)
- Shared
LaravelPipelineContextfor passing data between steps - Works with Closures or classes implementing
handle(LaravelPipelineContext $ctx) - PHPUnit + Testbench ready
- Lightweight, production-grade performance
π§ Usage
1οΈβ£ Basic Sequential Steps
2οΈβ£ Flow (Continue on Fail)
3οΈβ£ Parallel (Run All at Once)
π§° Advanced Features
Debug Timeline
Output Example:
Retry & Timeout
Retry and timeout are currently supported via the runStep() method when building custom pipelines; a more convenient array format [Step::class, 'retry' => 3, 'timeout' => 500] is planned for a future release. See docs for details.
Queued Parallel Execution
- Works with Laravel Redis queues or Horizon
- Steps executed concurrently without blocking main thread
Shared Pipeline Context
LaravelPipelineContext allows passing data between steps:
β‘ Benchmark
Typical performance (3-step pipeline):
- Sequential: < 10ms (micro-benchmark)
- Memory usage: negligible
- Parallel queued execution depends on queue worker speed
π‘ Step Types
-
Closure
-
Class with handle() (class name or instance)
- Boolean literal
π§ Testing
Run PHPUnit tests:
Includes:
- Sequential / flow / parallel tests
- Micro-benchmark tests
π Notes
- Make sure queue workers are running when using
parallel(queue: true) - Use
getResults()for detailed debugging or logging - Step names are auto-detected from class name or βClosureβ
π Sponsor
If you find this project helpful, please consider sponsoring my open source work to help sustain development and maintenance!
Thank you for supporting open source software.
π License
MIT Β© Prashant Rijal
All versions of laravel-pipeline with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0