PHPackages                             prolic/humus-stream-response-sender - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. prolic/humus-stream-response-sender

ActiveLibrary[HTTP &amp; Networking](/categories/http)

prolic/humus-stream-response-sender
===================================

ZF2 module that can send stream responses with http range header, xsendfile &amp; pecl\_http support

v0.3.0(7y ago)127555[7 issues](https://github.com/prolic/HumusStreamResponseSender/issues)[2 PRs](https://github.com/prolic/HumusStreamResponseSender/pulls)MITPHPPHP ^5.6|^7.0

Since Jul 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/prolic/HumusStreamResponseSender)[ Packagist](https://packagist.org/packages/prolic/humus-stream-response-sender)[ Docs](https://github.com/prolic/HumusStreamResponseSender)[ RSS](/packages/prolic-humus-stream-response-sender/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (9)Versions (6)Used By (0)

HumusStreamResponseSender
=========================

[](#humusstreamresponsesender)

[![Build Status](https://camo.githubusercontent.com/fd861dd085dfcf336ae9f2f9210f617dad10f04cf6e59f1ac269e705afade987/68747470733a2f2f7472617669732d63692e6f72672f70726f6c69632f48756d757353747265616d526573706f6e736553656e6465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/prolic/HumusStreamResponseSender)[![Coverage Status](https://camo.githubusercontent.com/d5c2b5ac9cc896fbc6f12dd35cbdd8c1edf8c0b89f78bbde19225f9b00931986/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70726f6c69632f48756d757353747265616d526573706f6e736553656e6465722f62616467652e706e67)](https://coveralls.io/r/prolic/HumusStreamResponseSender)[![Total Downloads](https://camo.githubusercontent.com/516a293b383cc7355d44d1ccd63ead1ff11b53e4362a0b88bd2b8e4c0aa378ce/68747470733a2f2f706f7365722e707567782e6f72672f70726f6c69632f68756d75732d73747265616d2d726573706f6e73652d73656e6465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/prolic/humus-stream-response-sender)[![Latest Stable Version](https://camo.githubusercontent.com/a1f18a990067fe96c904cad72a5bb8948757c8fb8491a9c6b1287c25c177d3e1/68747470733a2f2f706f7365722e707567782e6f72672f70726f6c69632f68756d75732d73747265616d2d726573706f6e73652d73656e6465722f762f737461626c652e706e67)](https://packagist.org/packages/prolic/humus-stream-response-sender)[![Latest Unstable Version](https://camo.githubusercontent.com/692084c550c8a807fd3a099571330590a1ef382af29998e6e8823632cdf57cc6/68747470733a2f2f706f7365722e707567782e6f72672f70726f6c69632f68756d75732d73747265616d2d726573706f6e73652d73656e6465722f762f756e737461626c652e706e67)](https://packagist.org/packages/prolic/humus-stream-response-sender)[![Dependency Status](https://camo.githubusercontent.com/80e41e97195434860ad4b660fed5f03598e3c04fd077dba5d38ffe833930c6a3/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f70726f6c69633a68756d75732d73747265616d2d726573706f6e73652d73656e6465722f6465762d6d61737465722f62616467652e706e67)](https://www.versioneye.com/php/prolic:humus-stream-response-sender)

Introduction
------------

[](#introduction)

HumusStreamResponseSender is a Zend Framework 2 module that sends stream responses with HTTP Range header, XSendFile &amp; pecl\_http support.

Requirements
------------

[](#requirements)

- [Zend Mvc 2.2.1](https://github.com/zendframework/zf2) (latest master)
- [Zend Http 2.2.1](https://github.com/zendframework/zf2) (latest master)
- [Zend ModuleManager 2.2.1](https://github.com/zendframework/zf2) (latest master)

Features / Goals
----------------

[](#features--goals)

- Send stream responses with Zend Framwork 2 \[COMPLETE\]
- Limit download speed \[COMPLETE\]
- Allow for range support (download resume) \[COMPLETE\]
- Send streams with pecl\_http extension \[INCOMPLETE\]
- Send streams with X-SendFile \[INCOMPLETE\]
- Send streams with X-Accel-Redirect \[INCOMPLETE\]
- Add controller plugin for easy streaming from controllers \[COMPLETE\]

Installation
------------

[](#installation)

1. Add `"prolic/humus-stream-response-sender": "dev-master"` to your `composer.json`
2. Run `php composer.phar install`
3. Enable the module in your `config/application.config.php` by adding `HumusStreamResponseSender` to `modules`

Configuration
-------------

[](#configuration)

Sample configuration:

```
