PHPackages                             zaengle/pipeline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zaengle/pipeline

ActiveLibrary

zaengle/pipeline
================

Niceties on top of Laravel Pipelines

v5.0.0(1y ago)995.6k↓50%5[1 PRs](https://github.com/zaengle/pipeline/pulls)MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Jun 29Pushed 1y ago3 watchersCompare

[ Source](https://github.com/zaengle/pipeline)[ Packagist](https://packagist.org/packages/zaengle/pipeline)[ RSS](/packages/zaengle-pipeline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (11)Used By (0)

[![Tests](https://github.com/zaengle/pipeline/workflows/Tests/badge.svg?branch=master)](https://github.com/zaengle/pipeline/workflows/Tests/badge.svg?branch=master)[![Latest Version on Packagist](https://camo.githubusercontent.com/6ef9d8730bc6ce05895836c3e9a65e873c11fc5f048eaedeae6c72dc1b66e02f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61656e676c652f706970656c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zaengle/pipeline)[![Total Downloads](https://camo.githubusercontent.com/6ad87c10b8a292caf4cd9336fe6daf068325e98d7e77b0daf7ea85d62546409a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a61656e676c652f706970656c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zaengle/pipeline)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

[![apollo launch control](apollo-launch.jpg)](apollo-launch.jpg)

Zaengle Pipeline
================

[](#zaengle-pipeline)

After using Laravel Pipelines to [handle complex data flows](https://zaengle.com/blog/handling-complex-data-flows) in our projects we saw a few patterns emerge:

- Database transactions
- Pipe interface
- Responses and exception handling

This package adds niceties on top of the Laravel Pipeline and consolidates them into a single reusable location.

*FYI - See the "Example" directory for a more thorough example.*

Installation
------------

[](#installation)

`composer require zaengle/pipeline`

Testing
-------

[](#testing)

`phpunit`

Basic Class Example
-------------------

[](#basic-class-example)

A pipeline is a common pattern for breaking data, logic, and response/exceptions into three distinct elements. **Zaengle Pipeline** abstracts these parts into helpful classes and gives some structure to the underlying pattern. For example, let's explore at what a pipeline might look like for a ficticious user registration:

```
