Download the PHP package axel-php/axel without Composer
On this page you can find all versions of the php package axel-php/axel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axel-php/axel
More information about axel-php/axel
Files in axel-php/axel
Package axel
Short Description Accelerated file downloads in PHP using Axel
License MIT
Informations about the package axel
AXEL-PHP - Axel Accelerated Download Functionality For PHP
General
The AXEL-PHP library wraps around the C based Axel library. Axel performs accelerated downloads from the command line, similar to wget
.
AXEL-PHP offers asynchronous and synchronous downloads. See below for usage.
AXEL-PHP also comes with an optional FIFO download manager with the ability to set numbers of current downloads. Just implement AxelDownloadManagerQueueInterface
together with your favourite queuing service.
PLEASE NOTE: This library is under active development as an alpha and is subject to change at any time.
Example Usages
Sync Download With Complete Callback
Start Async Download
Start Async Download With Progress Callbacks
Setup Download / Delayed Start
Get Download Status
Cleanup
Axel Managed Download Queue (Synchronous)
Version
0.0.13
Installation
Prerequesites
In order to install RPVR you will need:
- PHP 5.4 or higher
- Axel - A linux server with Axel installed
Install Instructions
The preferred method of installation is via Composer and Packagist.
- Install the axel command-line tool on the target system -
$ sudo apt-get install axel
- Install the AXEL-PHP library -
$ composer require axel-php/axel
Development
Want to contribute? Great! Feel free to get in touch with me and we can collaborate, or fork / pull as you like.
TODO
- Possible log options / write to log file?
- Intelligently deal with both concurrent connections and concurrent downloads
- Check write permissions in download directory
- Pause queue (Maybe subclass?)
- Test queue Async
License
The MIT License (MIT)
Copyright (c) 2015 Ian Outterside (Ian Builds Apps).
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.