承接 ebanx/stream 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ebanx/stream

最新稳定版本:2.0.0

Composer 安装命令:

composer require ebanx/stream

包简介

A library to help working with streams of data in PHP

README 文档

README

Why Stream?

Stream is a neat little library which should help you working with stream of data in PHP. It add methods to help you transform, reduce, and collect data.

Is it stable?

Well, Stream is used by EBANX to process over 17 millions requests per day. So it should be stable enough. But, any problems with it please open an issue or better yet, create a PR to fix it.

Example

Here is an example of how to use it. More examples can be found in the library test.

use EBANX\Stream\Stream;

$result = Stream::rangeInt(0, 10)
    ->map(function (int $value): int {
        return $value ** 2;
    })
    ->filter(function (int $value): bool {
        return $value % 2 === 0;
    })
    ->collect();

Installation

Install the library with Composer by running

composer require ebanx/stream

Licensing

We are distributing it using the permissive MIT license. Feel free to do whatever you want with it.

统计信息

  • 总下载量: 4.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 17
  • Watchers: 64
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-09