承接 netom/bullet-chunks 相关项目开发

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

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

netom/bullet-chunks

最新稳定版本:1.0.1

Composer 安装命令:

composer require netom/bullet-chunks

包简介

Response type for the bulletphp framework implementing chunked encoding

README 文档

README

Build Status

Bullet-Chunks is a Response class for the Bullet PHP framework.

It helps reducing the memory/disk footprint and the response time of Bullet PHP pages or API endpoints where lot of data needs to be returned.

Often such data is read from a database as a list of records, or from a file as binary chunks of lines.

If a Traversable (or similarly foreach-able) class can be (or already is) wrapped around the data where it isn't fetched at once, but record-by-record or line-by-line, this response object can emit the HTTP response as the data arrives, without loading all of it into a large memory buffer or temporary file.

As a result, the browser or API client will start receiving the data as the first item arrives, and the memory footprint won't depend on the amount of data being transferred.

Chunked encoding

Installation

Usage

Running the tests

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-02