shakahl/hups-util-filedownloader

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

PHP file downloader. Supports large files and resuming downloads.

dev-master 2015-03-15 05:59 UTC

This package is not auto-updated.

Last update: 2021-10-16 02:00:09 UTC


README

File downloader utility. This package is a part of the Hups Framework.  

Features

  • Large file download support
  • Resumable downloads
  • Download speed limitation
  • Low memory usage
  • Costumizable headers

Installation

https://packagist.org/packages/shakahl/hups-util-filedownloader

Add shakahl/hups-util-filedownloader as a requirement to composer.json:

{
    "require": {
        "shakahl/hups-util-filedownloader": "dev-master"
    }
}

Update your packages with composer update or install with composer install.

You can also add the package using composer require shakahl/hups-util-filedownloader and later specifying the version you want (for now, dev-master is your best bet).

Usage example

<?php  
\Hups\Util\FileDownloader::download('/path/to/large_file_to_download');
?>

Unit testing

Under Windows

$ composer update
$ vendor/bin/phpunit​.bat

 

Under Linux

$ composer update
$ vendor/bin/phpunit​