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

ActiveYii2-extension

andru19/yii2-dropzone
=====================

Yii2 Dropzone widget

01.8k1[1 issues](https://github.com/ANDRU19/yii2-dropzone/issues)PHP

Since May 30Pushed 9y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Dropzone Extension for Yii 2
============================

[](#dropzone-extension-for-yii-2)

This extension provides the [Dropzone](http://www.dropzonejs.com/) integration for the Yii2 framework.

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

[](#installation)

This extension requires [Dropzone](https://github.com/enyo/dropzone)

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

Either run

```
php composer.phar require --prefer-dist andru19/yii2-dropzone "*"

```

or add

```
"andru19/yii2-dropzone": "*"

```

to the require section of your composer.json.
=============================================

[](#to-the-require-section-of-your-composerjson)

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

General Usage
-------------

[](#general-usage)

```
use andru\dropzone\DropZone;

DropZone::widget(
    [
        'name' => 'file', // input name or 'model' and 'attribute'
        'url' => '', // upload url
        'storedFiles' => [], // stores files
        'eventHandlers' => [], // dropzone event handlers
        'sortable' => true, // sortable flag
        'sortableOptions' => [], // sortable options
        'htmlOptions' => [], // container html options
        'options' => [], // dropzone js options
    ]
)

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

you can also register `andru\dropzone\UploadAction` and `andru\dropzone\RemoveAction` actions in your controller
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![andrewRybachuk](https://avatars.githubusercontent.com/u/10577258?v=4)](https://github.com/andrewRybachuk "andrewRybachuk (24 commits)")

### Embed Badge

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

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

PHPackages © 2026

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