承接 athlon1600/php-curl-file-downloader 相关项目开发

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

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

athlon1600/php-curl-file-downloader

最新稳定版本:v1.0.2

Composer 安装命令:

composer require athlon1600/php-curl-file-downloader

包简介

无描述信息

README 文档

README

Supported PHP Versions GitHub Workflow Status (with event) Packagist Downloads (custom server)

Download large files using PHP and cURL

There's too many code snippets on the Internet on how to do this, but not enough libraries.

This will allow you to download files of any size using cURL without ever running out of memory. That's it.

<?php

use Curl\Client;
use CurlDownloader\CurlDownloader;

$browser = new Client();
$downloader = new CurlDownloader($browser);

$response = $downloader->download("https://download.ccleaner.com/cctrialsetup.exe", function ($filename) {
    return './2020-06-07-' . $filename;
});

if ($response->status == 200) {
    // 28,851,928 bytes downloaded in 20.041231 seconds
    echo number_format($response->info->size_download) . ' bytes downloaded in ' . $response->info->total_time . ' seconds';
}

It will automatically guess filename of the resource being downloaded (just like web-browsers do it!) with an option to override it if needed.

Installation

composer require athlon1600/php-curl-file-downloader "^1.0"

Links

统计信息

  • 总下载量: 100.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 3
  • 依赖项目数: 9
  • 推荐数: 0

GitHub 信息

  • Stars: 25
  • Watchers: 1
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固