PHPackages                             gustarus/yii2-upload - 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. gustarus/yii2-upload

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

gustarus/yii2-upload
====================

A module to upload and download files through an api and an interface to manage uploads

1.1.0(6y ago)0144MITPHPPHP &gt;=5.4.0

Since Sep 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gustarus/yii2-upload)[ Packagist](https://packagist.org/packages/gustarus/yii2-upload)[ RSS](/packages/gustarus-yii2-upload/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (0)

This package is a module to manage uploads. This module has two actions `DownloadAction` and `UploadAction` to use them inside your controllers. Also this module has web interface to show your upload and to manage them.

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

[](#installation)

**1. Require the package via composer**

```
composer require gustarus/yii2-upload
```

**2. Add some code to your default configuration file**

This file should be used inside both `web` and `console`. Also you should define uploads folder (where to store uploaded files).

```
[
  'aliases' => [
    '@uploads' => '@app/web/uploads',
  ],

  'modules' => [
    'upload' => [
      'class' => 'gustarus\upload\Module',
    ],
  ],
];
```

**3. Add some code to your console configuration file**

With this code you will enable migrations from this package.

```
[
  'controllerNamespace' => 'app\commands',
  'controllerMap' => [
    'migrate' => [
      'class' => 'yii\console\controllers\MigrateController',
      'migrationPath' => [
        '@gustarus/upload/migrations',
      ],
    ],
  ],
]
```

**4. Use this module**

The module interface will be available by `/upload` uri.

To be done
----------

[](#to-be-done)

- Describe how to use the actions inside controllers.
- Describe how to send data to the upload action.
- Describe how to use the download action.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

2414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05d5729ce29b13f78d739266190c4ed715ccac54013bbd4d1e1000984e1c0c00?d=identicon)[gustarus](/maintainers/gustarus)

---

Top Contributors

[![gustarus](https://avatars.githubusercontent.com/u/7753223?v=4)](https://github.com/gustarus "gustarus (1 commits)")

---

Tags

yii2gustarusFiles Uploadyii2-upload

### Embed Badge

![Health badge](/badges/gustarus-yii2-upload/health.svg)

```
[![Health](https://phpackages.com/badges/gustarus-yii2-upload/health.svg)](https://phpackages.com/packages/gustarus-yii2-upload)
```

###  Alternatives

[limion/yii2-jquery-fileupload-widget

Blueimp file upload widget for Yii2

1224.5k](/packages/limion-yii2-jquery-fileupload-widget)[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)
