2017 © Pedro Peláez
 

library worker-download

A worker to send large content without filling the RAM.

image

photon/worker-download

A worker to send large content without filling the RAM.

  • Wednesday, November 2, 2016
  • by delkia
  • Repository
  • 3 Watchers
  • 1 Stars
  • 900 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

worker-download

Build Status, (*1)

A worker to stream just-in-time a HTTP Response from a iterator, (*2)

Quick start

1) Add the module in your project, (*3)

composer require "photon/worker-download"

2) Add the worker in the configuration, (*4)

'installed_tasks' => array(
    'PhotonDownload'            =>  '\photon\task\PhotonDownload',
),
'photon_task_PhotonDownload' => array(
    'sub_addr' => 'tcp://127.0.0.1:11011',
),

3) Start the worker, (*5)

hnu worker PhotonDownload

4) Send work to the worker in a view, (*6)

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;
}

The Versions

02/11 2016

dev-master

9999999-dev http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

02/11 2016

v1.1.6

1.1.6.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

08/06 2016

v1.1.5

1.1.5.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

08/06 2016

v1.1.4

1.1.4.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

08/06 2016

v1.1.3

1.1.3.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

08/12 2015

v1.1.2

1.1.2.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

18/05 2015

v1.1.1

1.1.1.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

03/04 2015

v1.1.0

1.1.0.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download

01/04 2015

v1.0.0

1.0.0.0 http://www.photon-project.com/

A worker to send large content without filling the RAM.

  Sources   Download

LGPL-2.1

The Requires

 

by William MARTIN

worker photon download