nacosvel / pipeline
The Nacosvel Components
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/nacosvel/pipeline
Requires
- php: ^8.0
- nacosvel/macroable: ^1.0
- psr/container: ^1.1.1|^2.0.1
This package is auto-updated.
Last update: 2025-12-01 09:52:49 UTC
README
Pipeline
The Nacosvel Components
Table of Contents
Installation
You can install the package via Composer:
composer require nacosvel/pipeline
Usage
$pipeline = new Nacosvel\Pipeline\Pipeline(); $pipeline = $pipeline->send($passable = 'hello')->through([ new Middleware, ])->then(function ($passable) { return $passable; }); var_dump($pipeline);
$hub = new Nacosvel\Pipeline\Hub(); $hub->pipeline('pipeline', function (Pipeline $pipeline, $passable) { return $pipeline->send($passable)->through([ new Middleware, ])->thenReturn(); }); $hub->pipelines('pipelines', [ new Middleware, ]); var_dump($hub->pipe($passable = 'hello', 'pipeline')); var_dump($hub->pipe($passable = 'hello', 'pipelines'));
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Contributors
Thanks goes to these wonderful people:
Contributions of any kind are welcome!
License
Distributed under the MIT License (MIT). Please see License File for more information.