PHPackages                             maxmirazh33/yii2-uploadable-file - 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. maxmirazh33/yii2-uploadable-file

ActiveYii2-extension

maxmirazh33/yii2-uploadable-file
================================

Yii2 extension for upload files

v2.2.2(6y ago)24991MITPHP

Since Feb 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/maxmirazh33/yii2-uploadable-file)[ Packagist](https://packagist.org/packages/maxmirazh33/yii2-uploadable-file)[ Docs](https://github.com/maxmirazh33/yii2-uploadable-file)[ RSS](/packages/maxmirazh33-yii2-uploadable-file/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

Yii2 uploadable file
====================

[](#yii2-uploadable-file)

Yii2 extension for upload files

[![Latest Version](https://camo.githubusercontent.com/4909ded94e9a7f7090513d659f1432583fce8880f0109fb04214a23c261703f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d61786d6972617a6833332f796969322d75706c6f616461626c652d66696c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/maxmirazh33/yii2-uploadable-file/releases)[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/maxmirazh33/yii2-uploadable-file/blob/master/LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/8c77497186d65025a3eac22ff98b47e44c043f39d5ea82c4c39451ad9d50a061/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d61786d6972617a6833332f796969322d75706c6f616461626c652d66696c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/maxmirazh33/yii2-uploadable-file)[![Total Downloads](https://camo.githubusercontent.com/bcede8ec21bcb74b05b7073019cec243dbed6cf5a028b6500e0e89de662f3acc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61786d6972617a6833332f796969322d75706c6f616461626c652d66696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maxmirazh33/yii2-uploadable-file)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist maxmirazh33/yii2-uploadable-file "*"

```

or add

```
"maxmirazh33/yii2-uploadable-file": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

In your model:

```
public function behaviors()
    {
        return [
            [
                'class' => \maxmirazh33\file\Behavior::className(),
                'savePathAlias' => '@web/files/',
                'urlPrefix' => '/files/',
                'attributes' => [
                    'image' => [
                        'savePathAlias' => '@web/images/',
                        'urlPrefix' => '/images/',
                    ],
                    'file',
                ],
            ],
        //other behaviors
        ];
    }
```

Use rules for validate attribute.

If your need perfectly file input, then in your view file:

```
echo $form->field($model, 'file')->widget('maxmirazh33\file\Widget');
```

After, in your view:

```
echo Html::a('myCoolFile', $model->getFileUrl('file'));
```

If you use Advanced App Template and this behavior attached in backend model, then in frontend model add trait

```
use \maxmirazh33\file\GetFileUrlTrait
```

and use getFileUrl() method for frontend model too.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Recently: every ~458 days

Total

8

Last Release

2261d ago

Major Versions

v1.0.0 → v2.0.02015-02-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/4518ed87d5852b9540ead85bc84b4173de33fafcc0524dc80cfd3d625f8d65c5?d=identicon)[maxmirazh33](/maintainers/maxmirazh33)

---

Top Contributors

[![maxmirazh33](https://avatars.githubusercontent.com/u/2692282?v=4)](https://github.com/maxmirazh33 "maxmirazh33 (36 commits)")

---

Tags

yii2extensionfile-upload

### Embed Badge

![Health badge](/badges/maxmirazh33-yii2-uploadable-file/health.svg)

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[wbraganca/yii2-tagsinput

The yii2-tagsinput is a Yii 2 wrapper for \[bootstrap-tagsinput\](https://github.com/timschlechter/bootstrap-tagsinput). A user interface for managing tags.

32160.2k](/packages/wbraganca-yii2-tagsinput)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)

PHPackages © 2026

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