The Nacosvel Components
Table of Contents
You can install the package via Composer:
composer require nacosvel/pipeline$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'));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
Thanks goes to these wonderful people:
Contributions of any kind are welcome!
Distributed under the MIT License (MIT). Please see License File for more information.