pangolinkeys/pipe
Composer 安装命令:
composer require pangolinkeys/pipe
包简介
Package to provide standardisation to the pipe pattern
README 文档
README
Repository to provide a simple implementation of the pipeline pattern in PHP.
To use implement the Pipeline trait.
Call ->pipe() from your class passing a list of objects that implement the ProvidesPipeline class.
Optionally use InitializePipeline helper class to get your values into the pipeline.
See the Example folder inside the tests folder for a working example.
return $this->pipe(
new InitializePipeline($value),
new DivideByTwo,
new DivideByTwo,
new TimesByOneThousand,
new TimesByOneThousand
);
Composer
To install this package into your composer projects run:
composer require pangolinkeys/pipe
Context Pipeline
You can optionally implement ProvidesContextPipeline to be passed an instance of the piping object within the pipeline. This will be given as a second parameter to the handle method.
Pipe by class name
As of v2 you can define a pipeline by reference to the class name and allow the pipeline to handle class instantiation.
return $this->pipe(
new InitializePipeline($value),
DivideByTwo::class,
TimesByOneThousand::class
);
pangolinkeys/pipe 适用场景与选型建议
pangolinkeys/pipe 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 70 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 10 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pangolinkeys/pipe 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pangolinkeys/pipe 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 70
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-01