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

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yiidoc/yii2-upload-behavior
===========================

Yii2 Upload File Behavior

2.0.0(10y ago)270MITPHP

Since Jun 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/yiidoc/yii2-upload-behavior)[ Packagist](https://packagist.org/packages/yiidoc/yii2-upload-behavior)[ RSS](/packages/yiidoc-yii2-upload-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 Upload File Behavior
=========================

[](#yii2-upload-file-behavior)

Yii2 Upload File Behavior

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

[](#installation)

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

Either run

```
composer require --prefer-dist yiidoc/yii2-upload-behavior "*"

```

or add

```
"yiidoc/yii2-upload-behavior": "*"

```

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

Usage
-----

[](#usage)

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

```
    public function behaviors()
    {
        return [
            [
                'class' => 'yii\behaviors\UploadFileBehavior',
                'attribute' => 'picture',
                'uploadDir' => '@webroot/uploads/user/pictures'
            ]
        ];
    }
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4003d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5febf4410d0d682788394fd879de86774bf4b3c3bf29c9eec351b3232153d188?d=identicon)[zinzinday](/maintainers/zinzinday)

---

Top Contributors

[![zinzinday](https://avatars.githubusercontent.com/u/441560?v=4)](https://github.com/zinzinday "zinzinday (2 commits)")

---

Tags

yii2extension

### Embed Badge

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

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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