Download the PHP package photon/worker-download without Composer
On this page you can find all versions of the php package photon/worker-download. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download photon/worker-download
More information about photon/worker-download
Files in photon/worker-download
Download photon/worker-download
More information about photon/worker-download
Files in photon/worker-download
Vendor photon
Package worker-download
Short Description A worker to send large content without filling the RAM.
License LGPL-2.1
Homepage http://www.photon-project.com/
Package worker-download
Short Description A worker to send large content without filling the RAM.
License LGPL-2.1
Homepage http://www.photon-project.com/
Please rate this library. Is it a good library?
Informations about the package worker-download
worker-download
A worker to stream just-in-time a HTTP Response from a iterator
Quick start
1) Add the module in your project
composer require "photon/worker-download"
2) Add the worker in the configuration
'installed_tasks' => array(
'PhotonDownload' => '\photon\task\PhotonDownload',
),
'photon_task_PhotonDownload' => array(
'sub_addr' => 'tcp://127.0.0.1:11011',
),
3) Start the worker
hnu worker PhotonDownload
4) Send work to the worker in a view
public function m2stream($request, $match)
{
$ans = new \photon\http\Response(new MyStream);
$ans->headers['Content-Length'] = 247463936;
\photon\task\PhotonDownload::createDownload($request, $ans);
return false;
}
All versions of worker-download with dependencies
PHP Build Version
Package Version
The package photon/worker-download contains the following files
Loading the files please wait ....