PHPackages                             axel-php/axel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. axel-php/axel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

axel-php/axel
=============

Accelerated file downloads in PHP using Axel

0.0.13(10y ago)10741MITPHPPHP &gt;=5.4.0

Since Jun 1Pushed 10y agoCompare

[ Source](https://github.com/ianoshorty/axel-php)[ Packagist](https://packagist.org/packages/axel-php/axel)[ RSS](/packages/axel-php-axel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (14)Used By (0)

AXEL-PHP - Axel Accelerated Download Functionality For PHP
==========================================================

[](#axel-php---axel-accelerated-download-functionality-for-php)

[![Codeship Status for ianoshorty/axel-php](https://camo.githubusercontent.com/39d4c35a124efc3e2d8f8d621b20eab40ef2340a077b8042e20b89e1c18d3404/68747470733a2f2f636f6465736869702e636f6d2f70726f6a656374732f61306635386566302d653762312d303133322d363531622d3465333430383639633131662f7374617475733f6272616e63683d6d6173746572)](https://codeship.com/projects/82613) [![Code Climate](https://camo.githubusercontent.com/d32a27c50f7163220128001e5b2fce69d046679d2c41fb7ce9b099a7c2d8eb0d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f69616e6f73686f7274792f6178656c2d7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/ianoshorty/axel-php) [![Latest Stable Version](https://camo.githubusercontent.com/a4f21cbd7118b60275726993e476affd416500c41b9e9528c0e42b0eaf67b6ec/68747470733a2f2f706f7365722e707567782e6f72672f6178656c2d7068702f6178656c2f762f737461626c65)](https://packagist.org/packages/axel-php/axel) [![Total Downloads](https://camo.githubusercontent.com/29c33c921ce3335578ebc911d1e97a7a23f7d006fbfe96d93d5d2b68a94a5d7f/68747470733a2f2f706f7365722e707567782e6f72672f6178656c2d7068702f6178656c2f646f776e6c6f616473)](https://packagist.org/packages/axel-php/axel) [![Latest Unstable Version](https://camo.githubusercontent.com/85a2948ad48659cf1edc5675923e30ae49ccbe3677ef859e90e3aa70b2d52ddc/68747470733a2f2f706f7365722e707567782e6f72672f6178656c2d7068702f6178656c2f762f756e737461626c65)](https://packagist.org/packages/axel-php/axel) [![License](https://camo.githubusercontent.com/87d63024000a550e79ce746954b74d8d4ca56bad82a938f039dc56929f26554d/68747470733a2f2f706f7365722e707567782e6f72672f6178656c2d7068702f6178656c2f6c6963656e7365)](https://packagist.org/packages/axel-php/axel)

General
-------

[](#general)

The AXEL-PHP library wraps around the C based [Axel](http://axel.alioth.debian.org) 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
--------------

[](#example-usages)

### Sync Download With Complete Callback

[](#sync-download-with-complete-callback)

```
$axel = new Axel\AxelDownload();
$axel->start('http://www.google.com', null, null, function($axel, $status, $success, $error) {
    echo 'File Downloaded';
    print_r($status);
});
```

### Start Async Download

[](#start-async-download)

```
$axel = new Axel\AxelDownload();
$axel->startAsync('http://ipv4.download.thinkbroadband.com/1GB.zip', 'test.zip', '~/');
```

### Start Async Download With Progress Callbacks

[](#start-async-download-with-progress-callbacks)

```
$axel = new Axel\AxelDownload();
$axel->startAsync('http://ipv4.download.thinkbroadband.com/1GB.zip', 'test.zip', '~/', function($axel, $status, $success, $error) {
   echo 'Progress updated';
   print_r($status);
});
```

### Setup Download / Delayed Start

[](#setup-download--delayed-start)

```
$axel = new Axel\AxelDownload();
$axel->addDownloadParameters([
    'address'           => 'http://www.google.com',
    'filename'          => 'test.html',
    'download-path'     => '~/',
    'callback'          => function($axel, $status, $success, $error) {
        echo 'Progress updated';
        print_r($status);
    }
]);
$axel->startAsync();
```

### Get Download Status

[](#get-download-status)

```
$status = $axel->updateStatus();
```

### Cleanup

[](#cleanup)

```
$axel->clearCompleted()
```

### Axel Managed Download Queue (Synchronous)

[](#axel-managed-download-queue-synchronous)

```
$dm = new Axel\AxelDownloadManager(new AxelDownloadManagerSyncQueue(), 'axel');
$dm->queueDownload('http://www.google.com', 'file1.html');
$dm->queueDownload('http://www.yahoo.com', 'file2.html');
$dm->processQueue();
```

### Version

[](#version)

0.0.13

---

Installation
------------

[](#installation)

### Prerequesites

[](#prerequesites)

In order to install RPVR you will need:

- PHP 5.4 or higher
- [Axel](http://axel.alioth.debian.org) - A linux server with Axel installed

### Install Instructions

[](#install-instructions)

The preferred method of installation is via [Composer](https://getcomposer.org) and [Packagist](https://packagist.org).

1. Install the axel command-line tool on the target system - `$ sudo apt-get install axel`
2. Install the AXEL-PHP library - `$ composer require axel-php/axel`

---

Development
-----------

[](#development)

Want to contribute? Great! Feel free to get in touch with me and we can collaborate, or fork / pull as you like.

### TODO

[](#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
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Ian Outterside ([Ian Builds Apps](http://www.ianbuildsapps.com)).

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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

12

Last Release

3999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98259b68e045e9b6eeba2b882534a16d56530086c654dfeb00a95e99c9cc1b58?d=identicon)[ianoshorty](/maintainers/ianoshorty)

---

Top Contributors

[![ianoshorty](https://avatars.githubusercontent.com/u/789192?v=4)](https://github.com/ianoshorty "ianoshorty (92 commits)")

---

Tags

downloaddownload managerfile downloaddownload queuedownload accelerator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axel-php-axel/health.svg)

```
[![Health](https://phpackages.com/badges/axel-php-axel/health.svg)](https://phpackages.com/packages/axel-php-axel)
```

###  Alternatives

[bandwidth-throttle/bandwidth-throttle

Bandwidth throttle at application layer

87139.3k](/packages/bandwidth-throttle-bandwidth-throttle)[kleiram/transmission-php

PHP Transmission client

18416.9k1](/packages/kleiram-transmission-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
