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

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

cybernic/yii2-dropzone
======================

DropzoneJs Extention for Yii2

v1.0.1(10y ago)020MITPHP

Since Oct 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cybernic/yii2-dropzone)[ Packagist](https://packagist.org/packages/cybernic/yii2-dropzone)[ RSS](/packages/cybernic-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 cybernic/yii2-dropzone "dev-master"

```

or add

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

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

```
echo \cybernic\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 54% 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 63.2% 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

3837d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c6cf260da700546d53744ec59975ef7f75442306e0538cc74edf96ccec54052?d=identicon)[cybernic](/maintainers/cybernic)

---

Top Contributors

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

```
[![Health](https://phpackages.com/badges/cybernic-yii2-dropzone/health.svg)](https://phpackages.com/packages/cybernic-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)[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)
