定制 phpextra/zip-stream 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

phpextra/zip-stream

Composer 安装命令:

composer require phpextra/zip-stream

包简介

Stream files as zip archive on the fly

README 文档

README

#ZIP Stream

Stream your files as a zip stream without wasting server's memory.

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Scrutinizer Code Quality Code Coverage GitTip

##Usage

<?php

header('Content-disposition: attachment; filename="zip-stream-example.zip"');
header('Content-Type: application/octet-stream');

require_once __DIR__ . '/vendor/autoload.php';

$zipStream = new \PHPExtra\ZipStream\ZipStream(array(__DIR__ . '/5GB-large-file.mp3'));

while(!$zipStream->eof()){
    echo $zipStream->read(8192);
}

$zipStream->close();

Installation (Composer)

{
    "require": {
        "phpextra/zip-stream":"*"
    }
}

##Changelog

No releases yet

##Contributing

All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the coding standards. If you would like to help take a look at the list of issues.

##Authors

Jacek Kobus - <kobus.jacek@gmail.com>

License information

See the file LICENSE.txt for copying permission

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-04-27