PHPackages                             primipilus/downloader - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. primipilus/downloader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

primipilus/downloader
=====================

download file

v2.0.2(8y ago)02.5k1MITPHPPHP &gt;=7.1.0

Since Oct 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/primipilus/downloader)[ Packagist](https://packagist.org/packages/primipilus/downloader)[ Docs](https://github.com/primipilus/downloader)[ RSS](/packages/primipilus-downloader/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

Downloader
----------

[](#downloader)

Composer install
----------------

[](#composer-install)

```
composer require "primipilus/downloader:~2.0"
```

Usage
-----

[](#usage)

```
try {
    $downloader = \primipilus\downloader\Downloader::getInstance('http', ['temporaryDir' => __DIR__, 'attempts' => 5]);
} catch (BaseException $e) {
}

$client = new FtpClient\FtpClient();
try {
    $downloader = \primipilus\downloader\Downloader::getInstance('ftp', ['temporaryDir' => __DIR__, 'attempts' => 5, 'client' => $client]);
} catch (BaseException $e) {
}

if ($downloader) {
    $file = $downloader->downloadFile($fileFrom);

    echo $file->getOriginal(), PHP_EOL;
    echo $file->getInfo()->path, PHP_EOL;
    echo $file->getInfo()->basename, PHP_EOL;
    echo $file->getInfo()->filename, PHP_EOL;
    echo $file->getInfo()->extension, PHP_EOL;
    if ($file->getInfo()->isImage) {
        echo $file->getInfo()->image->width . ' px', PHP_EOL;
        echo $file->getInfo()->image->height . ' px', PHP_EOL;
    }
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~112 days

Total

5

Last Release

3086d ago

Major Versions

v1.0.1 → v2.0.02017-06-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bfadced1affd667d8970d27271e3d227b64a1f55951fe83ad4733b9013e4c71?d=identicon)[primipilus](/maintainers/primipilus)

---

Top Contributors

[![primipilus](https://avatars.githubusercontent.com/u/19665318?v=4)](https://github.com/primipilus "primipilus (7 commits)")[![explossive](https://avatars.githubusercontent.com/u/4973222?v=4)](https://github.com/explossive "explossive (3 commits)")

---

Tags

downloadhttp downloadDownload file

### Embed Badge

![Health badge](/badges/primipilus-downloader/health.svg)

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

###  Alternatives

[jmathai/s3-bucket-stream-zip-php

PHP library to efficiently stream contents from an AWS S3 bucket or folder as a zip file

56114.7k](/packages/jmathai-s3-bucket-stream-zip-php)

PHPackages © 2026

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