PHPackages                             zhuzhu/yii2-dropzone - 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. zhuzhu/yii2-dropzone

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

zhuzhu/yii2-dropzone
====================

DropzoneJs Extention for Yii2

v1.0.1(10y ago)020MITPHP

Since Oct 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/zz/yii2-dropzone)[ Packagist](https://packagist.org/packages/zhuzhu/yii2-dropzone)[ RSS](/packages/zhuzhu-yii2-dropzone/feed)WikiDiscussions master Synced today

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

Yii2 Dropzone
=============

[](#yii2-dropzone)

DropzoneJs Extention for Yii2

A port of [DropzoneJs](http://www.dropzonejs.com/) for Yii2 Framework.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist perminder-klair/yii2-dropzone "dev-master"

```

or add

```
"perminder-klair/yii2-dropzone": "dev-master"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by to create Ajax upload area :

```
echo \kato\DropZone::widget();
```

To pass options : (More details at [dropzonejs official docs](http://www.dropzonejs.com/#toc_6) )

```
echo \kato\DropZone::widget([
       'options' => [
           'maxFilesize' => '2',
       ],
       'clientEvents' => [
           'complete' => "function(file){console.log(file)}",
           'removedfile' => "function(file){alert(file.name + ' is removed')}"
       ],
   ]);
```

Example of upload method :

```
public function actionUpload()
{
    $fileName = 'file';
    $uploadPath = './files';

    if (isset($_FILES[$fileName])) {
        $file = \yii\web\UploadedFile::getInstanceByName($fileName);

        //Print file data
        //print_r($file);

        if ($file->saveAs($uploadPath . '/' . $file->name)) {
            //Now save file data to database

            echo \yii\helpers\Json::encode($file);
        }
    }

    return false;
}
```

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% 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 ~382 days

Total

2

Last Release

3785d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4ac4a61a375acd610e910c3a85beace8bf6dedc6c26ce52ba590c094d4755ed?d=identicon)[zhuzhu](/maintainers/zhuzhu)

---

Top Contributors

[![perminder-klair](https://avatars.githubusercontent.com/u/3984412?v=4)](https://github.com/perminder-klair "perminder-klair (24 commits)")[![zz](https://avatars.githubusercontent.com/u/41499?v=4)](https://github.com/zz "zz (3 commits)")[![niekoost](https://avatars.githubusercontent.com/u/359593?v=4)](https://github.com/niekoost "niekoost (2 commits)")[![evgen-d](https://avatars.githubusercontent.com/u/2807102?v=4)](https://github.com/evgen-d "evgen-d (1 commits)")[![robertklein](https://avatars.githubusercontent.com/u/8589235?v=4)](https://github.com/robertklein "robertklein (1 commits)")

---

Tags

uploadyii2extensiondropzone

### Embed Badge

![Health badge](/badges/zhuzhu-yii2-dropzone/health.svg)

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

###  Alternatives

[perminder-klair/yii2-dropzone

DropzoneJs Extention for Yii2

50237.3k1](/packages/perminder-klair-yii2-dropzone)[devgroup/yii2-dropzone

Yii2 Dropzone widget

1351.1k1](/packages/devgroup-yii2-dropzone)

PHPackages © 2026

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