PHPackages                             emnabs/yii2-plupload - 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. emnabs/yii2-plupload

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

emnabs/yii2-plupload
====================

Yii2 Plupload Widget

1.2.9(5y ago)0176MITPHP

Since Jun 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/emnabs/yii2-plupload)[ Packagist](https://packagist.org/packages/emnabs/yii2-plupload)[ Docs](https://github.com/emnabs/yii2-plupload)[ RSS](/packages/emnabs-yii2-plupload/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (0)

Yii2 Plupload Widget
====================

[](#yii2-plupload-widget)

yii2-plupload is a widget based plupload solution for Yii2. It is released under the BSD 3-Clause license.

[![Latest Stable Version](https://camo.githubusercontent.com/f0771b1f2b4a783ccb40aed248942ccb8303030ac1868987239409b1a2c8755f/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d706c75706c6f61642f762f737461626c652e706e67)](https://packagist.org/packages/emnabs/yii2-plupload)[![Total Downloads](https://camo.githubusercontent.com/5fa7cfc2dab058bb89a1fbe5d29c98f0093940c750b1dcb64f105acc4b572133/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d706c75706c6f61642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/emnabs/yii2-plupload)[![License](https://camo.githubusercontent.com/daa74623c9e8b81de19b072d749098763761917e1d32c15c396b3f8abfa248c2/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d706c75706c6f61642f6c6963656e73652e706e67)](https://packagist.org/packages/emnabs/yii2-plupload)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist emnabs/yii2-plupload "*"

```

or add

```
"emnabs/yii2-plupload": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use this widget, you have to add the code in your viewer page:

Usage With ActiveForm and model

```
use emhome\plupload\Plupload;

echo $form->field($model, 'thumb')->widget(Plupload::classname(), [
    'url' => ['upload'],
    //'wrapperOptions' => ['width' => 200, 'height' => 200],
    //'resize' => ['width' => 200, 'height' => 200],
    'autoUpload' => true,
    'options' => [
        'filters' => [
            'mime_types' => [
                [
                    'title' => "Image files",
                    'extensions' => "jpg,gif,png"
                ],
            ]
        ],
    ],
]);

```

Usage Without ActiveForm model

```
use emhome\plupload\Plupload;

Plupload::widget([
    'url' => ['upload'],
    'browseLabel' => '上传文件',
    'autoUpload' => true,
    'errorContainer' => 'errorUpload',
    'options' => [
        'filters' => [
            'max_file_size' => '20kb',
            'mime_types' => [
                [
                    'title' => "Image files",
                    'extensions' => "jpg,gif,png"
                ],
            ]
        ],
    ],
    'events' => [],
]);

```

Usage actions with PluploadAction

```
public function actions()
{
    return [
	...
        'plupload' => [
	    'class' => 'emhome\plupload\PluploadAction',
	    'onComplete' => function($file, $params) {
	        //上传完成后操作
		...
	        return [
	            'file' => $file,
	            'params' => $params
	        ];
	    },
	],
	...
    ];
}
```

License
-------

[](#license)

**yii2-plupload** is released under the `BSD 3-Clause` License. See the bundled `LICENSE.md` for details.

Plupload
--------

[](#plupload)

Copyright 2016, [Ephox](http://www.ephox.com/)
Released under [GPLv2 License](https://github.com/moxiecode/plupload/blob/master/license.txt)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

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

Recently: every ~178 days

Total

17

Last Release

1933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/053076ccac4c1459b62ffc1848e97bddf36a848a0e2e0c1c7482cb869e4d817a?d=identicon)[emnabs](/maintainers/emnabs)

---

Top Contributors

[![emnabs](https://avatars.githubusercontent.com/u/12934341?v=4)](https://github.com/emnabs "emnabs (38 commits)")

---

Tags

pluploadyiiyii2-pluploadyii2extensionplupload

### Embed Badge

![Health badge](/badges/emnabs-yii2-plupload/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

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

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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