承接 photon/worker-download 相关项目开发

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

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

photon/worker-download

最新稳定版本:v1.1.7

Composer 安装命令:

composer require photon/worker-download

包简介

A worker to send large content without filling the RAM.

README 文档

README

Build Status

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;
    

    }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2015-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固