PHPackages                             diecoding/yii2-dropify - 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. diecoding/yii2-dropify

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

diecoding/yii2-dropify
======================

Override your input files with style for Yii2

v1.1.2(3y ago)53.7k↓87.5%11MITPHPPHP &gt;=7.4.0CI failing

Since Feb 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wanforge/yii2-dropify)[ Packagist](https://packagist.org/packages/diecoding/yii2-dropify)[ GitHub Sponsors](https://github.com/sugeng-sulistiyawan)[ RSS](/packages/diecoding-yii2-dropify/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (12)Used By (1)

Yii2 Dropify
============

[](#yii2-dropify)

Override your input files with style for Yii2

[![Latest Stable Version](https://camo.githubusercontent.com/1e450ccea7c7da469ca7c0a1b88606df8953f3e1573f37270e6e8a3d7461731e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646965636f64696e672f796969322d64726f706966793f6c6162656c3d737461626c65)](https://packagist.org/packages/diecoding/yii2-dropify)[![Total Downloads](https://camo.githubusercontent.com/8ba5757150679d8e6aef065f92526f67e06271e5cee795a57385e69f52f8fe39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646965636f64696e672f796969322d64726f70696679)](https://packagist.org/packages/diecoding/yii2-dropify)[![Latest Stable Release Date](https://camo.githubusercontent.com/201f8292735a0b8b4318109928eb2b1f438473e4eeceaca405cd185bd2250e8b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f737567656e672d73756c69737469796177616e2f796969322d64726f70696679)](https://github.com/sugeng-sulistiyawan/yii2-dropify)[![Quality Score](https://camo.githubusercontent.com/a7dfe2cde442f1b456a3abc8a21d7e2a8199c34e01e406eddcb9299c6ce3f04a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f737567656e672d73756c69737469796177616e2f796969322d64726f70696679)](https://scrutinizer-ci.com/g/sugeng-sulistiyawan/yii2-dropify)[![Build Status](https://camo.githubusercontent.com/03bb19e20e15660b9655f7dc88467fe8ee77f0a4b48c3686bfa680b39f34d64d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f737567656e672d73756c69737469796177616e2f796969322d64726f70696679)](https://app.travis-ci.com/sugeng-sulistiyawan/yii2-dropify)[![License](https://camo.githubusercontent.com/9f6fec31836e1e42f10c5bfd9e1cf6b2ce89914592a3b5536160bcc195f6ebae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f737567656e672d73756c69737469796177616e2f796969322d64726f70696679)](https://github.com/sugeng-sulistiyawan/yii2-dropify)[![PHP Version Require](https://camo.githubusercontent.com/b71ff6546183ab22b1e1909fbb92d07d9f32e24319a21cf32ac50ca9f1d4fcda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f646965636f64696e672f796969322d64726f706966792f7068703f636f6c6f723d366637336136)](https://packagist.org/packages/diecoding/yii2-dropify)

> Yii2 Dropify uses [Dropify](https://github.com/JeremyFagis/dropify)
>  Demo:

Table of Contents
-----------------

[](#table-of-contents)

- [Yii2 Dropify](#yii2-dropify)
    - [Table of Contents](#table-of-contents)
    - [Instalation](#instalation)
    - [Dependencies](#dependencies)
    - [Usage](#usage)
        - [Forms/Views](#formsviews)

Instalation
-----------

[](#instalation)

Package is available on [Packagist](https://packagist.org/packages/diecoding/yii2-dropify), you can install it using [Composer](https://getcomposer.org).

```
composer require diecoding/yii2-dropify "^1.0"
```

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

```
"diecoding/yii2-dropify": "^1.0"
```

Dependencies
------------

[](#dependencies)

- PHP 7.4+
- [yiisoft/yii2](https://github.com/yiisoft/yii2)
- [npm-asset/dropify](https://asset-packagist.org/package/npm-asset/dropify)

Usage
-----

[](#usage)

### Forms/Views

[](#formsviews)

```
use diecoding\dropify\Dropify;

// Simple
echo Dropify::widget([
    'name' => 'image',
]);

// Advanced
echo Dropify::widget([
    'name' => 'image',
    'options' => [
        // options for input widget
    ],
    'pluginOptions' => [
        // options for dropify, as output `$(#options['id']).dropify(pluginOptions);`
        // @see https://github.com/JeremyFagis/dropify#options
    ],
    'imgFileExtensions' = [
        // Animated Portable Network Graphics
        'apng',

        // AV1 Image File Format
        'avif',

        // Graphics Interchange Format
        'gif',

        // Joint Photographic Expert Group image
        'jpeg',
        'jpg',
        'jpeg',
        'jfif',
        'pjpeg',
        'pjp',

        // Portable Network Graphics
        'png',

        // Scalable Vector Graphics
        'svg',

        // Web Picture format
        'webp',

        // Bitmap file
        'bmp',

        // Microsoft Icon
        'ico',
        'cur',

        // Tagged Image File Format
        'tif',
        'tiff',
    ],
    'skipCoreAssets' => false, // (bool) default `false`, `true` if use custom or external dropify assets
]);

// Simple with $model / ActiveField
echo $form->field($model, 'image')->widget(Dropify::class);

// Advanced with $model / ActiveField
echo $form->field($model, 'image')->widget(Dropify::class, [
    'options' => [
        // options for input widget
    ],
    'pluginOptions' => [
        // options for dropify, as output `$(#options['id']).dropify(pluginOptions);`
        // @see https://github.com/JeremyFagis/dropify#options
    ],
    'imgFileExtensions' = [
        // Animated Portable Network Graphics
        'apng',

        // AV1 Image File Format
        'avif',

        // Graphics Interchange Format
        'gif',

        // Joint Photographic Expert Group image
        'jpeg',
        'jpg',
        'jpeg',
        'jfif',
        'pjpeg',
        'pjp',

        // Portable Network Graphics
        'png',

        // Scalable Vector Graphics
        'svg',

        // Web Picture format
        'webp',

        // Bitmap file
        'bmp',

        // Microsoft Icon
        'ico',
        'cur',

        // Tagged Image File Format
        'tif',
        'tiff',
    ],
    'skipCoreAssets' => false, // (bool) default `false`, `true` if use custom or external dropify assets
]);
```

---

Read more docs:

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~116 days

Recently: every ~135 days

Total

11

Last Release

1163d ago

Major Versions

v0.3.0 → v1.0.02023-03-30

PHP version history (3 changes)v0.0.1PHP &gt;=7.0

v0.2.0PHP &gt;=5.6.0

v1.0.0PHP &gt;=7.4.0

### Community

Maintainers

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

---

Top Contributors

[![wanforge](https://avatars.githubusercontent.com/u/16300077?v=4)](https://github.com/wanforge "wanforge (34 commits)")[![Aresenka](https://avatars.githubusercontent.com/u/38325864?v=4)](https://github.com/Aresenka "Aresenka (2 commits)")

---

Tags

dropifyfileinputwidgetyii2yii2-extensionfilejqueryyii2widgetinputdropify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diecoding-yii2-dropify/health.svg)

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

###  Alternatives

[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2357.1M97](/packages/kartik-v-yii2-widget-fileinput)[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k8.2M13](/packages/kartik-v-bootstrap-fileinput)[kartik-v/yii2-editors

Editor widgets Yii2 framework. Summernote WYSIWYG editor, Codemirror code editor and PlainText editor for Bootstrap 3.x, 4.x and 5.x.

22330.9k1](/packages/kartik-v-yii2-editors)[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M20](/packages/blueimp-jquery-file-upload)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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