slashequip/laravel-pipeline

An opinionated, improved pipeline for Laravel projects to help breakdown complex logic into easily readable chunks.

0.2.0 2022-12-20 18:21 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

An opinionated, improved pipeline for Laravel projects to help breakdown complex logic into easily readable chunks.

Installation

You can install the package via composer:

composer require slashequip/laravel-pipeline

Usage

For full useage view the full documentation.

$pipeline = Pipeline::make();
$pipeline->send(UserRegistrationTransport::make());
$pipeline->through(
    CreateUserPipe::make(),
    NotifiyUserRegisteredPipe::make(),
    AddUserToSegmentPipe::make(),
    LogUserInPipe::make()
);
$finalTransportState = $pipeline->deliver();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.