π PHP based download accelerator β¬
This library is available as a composer package. Will add a standalone version with each release.
You only need php (with curl and mbstring extensions) and composer.
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();
use phpunit against tests
folder
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests
use phpcs against src
folder
./vendor/bin/phpcs src
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
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Jacer Omri - Initial work - jaceromri
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details