, (*1)
CurlAxel
🐘 PHP based download accelerator ⏬, (*2)
Getting Started
This library is available as a composer package. Will add a standalone version with each release., (*3)
Prerequisites
You only need php (with curl and mbstring extensions) and composer., (*4)
Installing and using
Use composer to install it, (*5)
composer require jaceromri/curl-axel
And use it, (*6)
$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, (*7)
$c = CurlAxel\Factory::create('Memory')
->setUrl('http://ovh.net/files/1Mio.dat')
->setOutput'download.dat');
$c->download();
Running the tests
use phpunit against tests
folder, (*8)
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests
Coding style tests
use phpcs against src
folder, (*9)
./vendor/bin/phpcs src
Roadmap
The primary goal for now is to get a good initial version of this lib, (*10)
- Better API
- Fix code style
- Add documentation
- Better exception handling
- Add server checks and fallback
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us., (*11)
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository., (*12)
Authors
See also the list of contributors who participated in this project., (*13)
License
This project is licensed under the MIT License - see the LICENSE.md file for details, (*14)