jaceromri/curl-axel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jaceromri/curl-axel

Composer 安装命令:

composer require jaceromri/curl-axel

包简介

PHP based download accelerator

README 文档

README

Packagist PHP from Packagist license

CurlAxel

🐘 PHP based download accelerator ⏬

Getting Started

This library is available as a composer package. Will add a standalone version with each release.

Prerequisites

You only need php (with curl and mbstring extensions) and composer.

Installing and using

Use composer to install it

composer require jaceromri/curl-axel

And use it

$c = CurlAxel\Factory::create()
    ->setUrl('http://ovh.net/files/1Mio.dat')
    ->setOutput'download.dat');

$c->download();

You can set an other way to handle chunk streams. For instance, there is an in memory chunk handler that would work well if you have issues accessing temp folder in your system

$c = CurlAxel\Factory::create('Memory')
    ->setUrl('http://ovh.net/files/1Mio.dat')
    ->setOutput'download.dat');

$c->download();

Running the tests

use phpunit against tests folder

./vendor/bin/phpunit --bootstrap vendor/autoload.php tests

Coding style tests

use phpcs against src folder

./vendor/bin/phpcs src

Roadmap

The primary goal for now is to get a good initial version of this lib

  • Better API
  • Fix code style
  • Add documentation
  • Better exception handling
  • Add server checks and fallback

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

统计信息

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

GitHub 信息

  • Stars: 36
  • Watchers: 6
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固