nacosvel/pipeline
最新稳定版本:v1.1.0
Composer 安装命令:
composer require nacosvel/pipeline
包简介
The Nacosvel Components
关键字:
README 文档
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.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-01