PHPackages                             somov/yii2-large-file-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. somov/yii2-large-file-downloader

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

somov/yii2-large-file-downloader
================================

Download file in multiple streams. With the ability to resume and monitor progress

1.0.6(4y ago)1169[1 PRs](https://github.com/somov/yii2-large-file-downloader/pulls)BSD-3-ClausePHP

Since Apr 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/somov/yii2-large-file-downloader)[ Packagist](https://packagist.org/packages/somov/yii2-large-file-downloader)[ RSS](/packages/somov-yii2-large-file-downloader/feed)WikiDiscussions master Synced yesterday

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

Yii2 Large file downloader
==========================

[](#yii2-large-file-downloader)

It is yii2 extension based on [yii2-httpclient](https://github.com/yiisoft/yii2-httpclient)

Download file in multiple streams. With the ability to resume and monitor progress.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist somov/yii2-large-file-downloader "~1.0"

```

or add

```
"somov/yii2-large-file-downloader": "~1.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
        /** @var \somov\lfd\Client $client */
        $client = Yii::createObject([
            'class' => \somov\lfd\Client::class,
            //'threadCount' => 5,
            //'resumeDownload' =>  true,
            //'tmpAlias' => '@runtime/downloads'
        ]);

        $client->on(\somov\lfd\Client::EVENT_PROGRESS, function ($event){
            /** @var \somov\lfd\ProgressEvent $event */
            echo  $event->percent;
        });

        //Download file
        $fileName = $client->download("https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4")->data;

        $size = filesize($fileName);

        echo $size;
```

Usage with command controller

```

Configure the command in your main application configuration:

```

```
    'controllerMap' => [
            'downloader' => '\somov\lfd\CommandController'
        ],
```

Once the extension is installed and configured, simply use it on your command line

```
yii downloader  https://speed.hetzner.de/1GB.bin -c 20

```

[![screen](https://camo.githubusercontent.com/55853aa2d0749f649521cb21e85266a1df19ba062ebfe84cf30ab5f23e6188fa/68747470733a2f2f692e6962622e636f2f507770583656662f53637265656e73686f742d66726f6d2d323031392d30352d30372d30312d35362d35372e706e67)](https://camo.githubusercontent.com/55853aa2d0749f649521cb21e85266a1df19ba062ebfe84cf30ab5f23e6188fa/68747470733a2f2f692e6962622e636f2f507770583656662f53637265656e73686f742d66726f6d2d323031392d30352d30372d30312d35362d35372e706e67)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~176 days

Recently: every ~261 days

Total

7

Last Release

1521d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67f8207c2de1ee090e2d3ae6168f17ae3aefb9447b6154a690ab2dc7ef163ff9?d=identicon)[somov](/maintainers/somov)

---

Top Contributors

[![somov](https://avatars.githubusercontent.com/u/6071978?v=4)](https://github.com/somov "somov (11 commits)")

---

Tags

fileyii2downloaderlarge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/somov-yii2-large-file-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/somov-yii2-large-file-downloader/health.svg)](https://phpackages.com/packages/somov-yii2-large-file-downloader)
```

###  Alternatives

[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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