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

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

vinpel/yii2-dropzone
====================

DropzoneJs Extention for Yii2 based on Parminder repo

v1.0.5(8y ago)06.9k↓47.5%1MITPHP

Since Oct 23Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (7)Used By (1)

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

[](#yii2-dropzone)

DropzoneJs Extention for Yii2

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

based from work of [Parminder Klair](https://github.com/perminder-klair) :

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vinpel/yii2-dropzone "~1.0.4"

```

or add

```
"vinpel/yii2-dropzone": "~1.0.4"

```

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 \vinpel\DropZone::widget();
```

To pass options and client event : (More details at [dropzonejs official docs](http://www.dropzonejs.com/#configuration-options) )

```
echo \vinpel\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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~223 days

Recently: every ~183 days

Total

6

Last Release

3111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/870bd63411a8a7917de5ba1bb565cecf183324eaad76f6cf25e41ceca0da3be9?d=identicon)[vinpel](/maintainers/vinpel)

---

Top Contributors

[![perminder-klair](https://avatars.githubusercontent.com/u/3984412?v=4)](https://github.com/perminder-klair "perminder-klair (24 commits)")[![vinpel](https://avatars.githubusercontent.com/u/1699839?v=4)](https://github.com/vinpel "vinpel (6 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/vinpel-yii2-dropzone/health.svg)

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

###  Alternatives

[perminder-klair/yii2-dropzone

DropzoneJs Extention for Yii2

50240.4k1](/packages/perminder-klair-yii2-dropzone)[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

12914.8k](/packages/noam148-yii2-image-manager)[nemmo/yii2-attachments

Extension for file uploading and attaching to the models

6616.6k5](/packages/nemmo-yii2-attachments)[devgroup/yii2-dropzone

Yii2 Dropzone widget

1051.6k1](/packages/devgroup-yii2-dropzone)[sjaakp/yii2-illustrated-behavior

ActiveRecord Behavior with associated Widget for Yii2.

423.1k](/packages/sjaakp-yii2-illustrated-behavior)

PHPackages © 2026

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