tkzo / huge-file-streaming-downloader
A streaming downloader for huge file in PHP.
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/tkzo/huge-file-streaming-downloader
Requires
- php: ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.5.9
This package is auto-updated.
Last update: 2025-09-29 02:50:55 UTC
README
This package is streaming downloader for loading huge file from remote. It is possible to save a huge file locally without loading the entire file into memory.
This package is compliant with PSR-4, PSR-1, and PSR-2. If you notice compliance oversights, please send a patch via pull request.
Installation
To install HugeFileStreamingDownloader
you can either clone this repository or you can use composer.
composer require tkzo/huge-file-streaming-downloader
Usage
$fileUrl = 'https://example.com/archive.tar.gz'; $savePath = 'path/to/dest/file.tar.gz'; $loader = new \HugeFileStreamingDownloader\Downloader($fileUrl); $loader->start($savePath);
There is a complete example of this in example/example.php
.