Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shakahl/hups-util-filedownloader

PHP file downloader. Supports large files and resuming downloads.
https://github.com/shakahl/hups-util-filedownloader

Last synced: about 1 month ago
JSON representation

PHP file downloader. Supports large files and resuming downloads.

Awesome Lists containing this project

README

        

File Downloader
===============

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`:

```javascript
{
"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
-------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Unit testing
------------

### Under Windows

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

### Under Linux

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ composer update
$ vendor/bin/phpunit​
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~