{"id":16078336,"url":"https://github.com/prolic/humusstreamresponsesender","last_synced_at":"2025-03-17T17:30:27.828Z","repository":{"id":6238972,"uuid":"7470819","full_name":"prolic/HumusStreamResponseSender","owner":"prolic","description":"Zf2 Module that sends stream responses with additional features like download resume and speed limit","archived":false,"fork":false,"pushed_at":"2018-11-22T16:23:11.000Z","size":55,"stargazers_count":12,"open_issues_count":9,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T01:49:33.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prolic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-06T18:06:30.000Z","updated_at":"2023-09-13T12:16:51.000Z","dependencies_parsed_at":"2022-09-22T14:24:56.092Z","dependency_job_id":null,"html_url":"https://github.com/prolic/HumusStreamResponseSender","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolic%2FHumusStreamResponseSender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolic%2FHumusStreamResponseSender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolic%2FHumusStreamResponseSender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolic%2FHumusStreamResponseSender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prolic","download_url":"https://codeload.github.com/prolic/HumusStreamResponseSender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871888,"owners_count":20361379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T10:11:45.485Z","updated_at":"2025-03-17T17:30:27.448Z","avatar_url":"https://github.com/prolic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"HumusStreamResponseSender\n=========================\n\n[![Build Status](https://travis-ci.org/prolic/HumusStreamResponseSender.png?branch=master)](https://travis-ci.org/prolic/HumusStreamResponseSender)\n[![Coverage Status](https://coveralls.io/repos/prolic/HumusStreamResponseSender/badge.png)](https://coveralls.io/r/prolic/HumusStreamResponseSender)\n[![Total Downloads](https://poser.pugx.org/prolic/humus-stream-response-sender/downloads.png)](https://packagist.org/packages/prolic/humus-stream-response-sender)\n[![Latest Stable Version](https://poser.pugx.org/prolic/humus-stream-response-sender/v/stable.png)](https://packagist.org/packages/prolic/humus-stream-response-sender)\n[![Latest Unstable Version](https://poser.pugx.org/prolic/humus-stream-response-sender/v/unstable.png)](https://packagist.org/packages/prolic/humus-stream-response-sender)\n[![Dependency Status](https://www.versioneye.com/php/prolic:humus-stream-response-sender/dev-master/badge.png)](https://www.versioneye.com/php/prolic:humus-stream-response-sender)\n\nIntroduction\n------------\n\nHumusStreamResponseSender is a Zend Framework 2 module that sends stream responses\nwith HTTP Range header, XSendFile \u0026 pecl_http support.\n\nRequirements\n------------\n\n* [Zend Mvc 2.2.1](https://github.com/zendframework/zf2) (latest master)\n* [Zend Http 2.2.1](https://github.com/zendframework/zf2) (latest master)\n* [Zend ModuleManager 2.2.1](https://github.com/zendframework/zf2) (latest master)\n\nFeatures / Goals\n----------------\n\n* Send stream responses with Zend Framwork 2 [COMPLETE]\n* Limit download speed [COMPLETE]\n* Allow for range support (download resume) [COMPLETE]\n* Send streams with pecl_http extension [INCOMPLETE]\n* Send streams with X-SendFile [INCOMPLETE]\n* Send streams with X-Accel-Redirect [INCOMPLETE]\n* Add controller plugin for easy streaming from controllers [COMPLETE]\n\nInstallation\n------------\n\n 1.  Add `\"prolic/humus-stream-response-sender\": \"dev-master\"` to your `composer.json`\n 2.  Run `php composer.phar install`\n 3.  Enable the module in your `config/application.config.php` by adding `HumusStreamResponseSender` to `modules`\n\nConfiguration\n-------------\n\nSample configuration:\n\n    \u003c?php\n    return array(\n        'HumusStreamResponseSender' =\u003e array(\n            'enable_speed_limit' =\u003e true,\n            'enable_range_support' =\u003e true,\n            'chunk_size' =\u003e 1024 * 1024 //  = 1MB/s\n        ),\n    );\n\nUsage of controller plugin\n--------------------------\n\nThe simplest way to stream a response from a controller, is the stream plugin.\n\n    class IndexController extends AbstractActionController\n    {\n        public function fileAction()\n        {\n            return $this-\u003eplugin('stream')-\u003ebinaryFile('/path/to/my/file');\n        }\n    }\n\nAdditional notes\n----------------\n\nIf the speed limit switch is set to true, the used chunksize will also be the download speed in bytes per second\n\nThe default configuration is:\n- enable_speed_limit = false\n- enable_range_support = false\n- chunk_size = 262144\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolic%2Fhumusstreamresponsesender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprolic%2Fhumusstreamresponsesender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolic%2Fhumusstreamresponsesender/lists"}