PHPackages                             vova07/yii2-fileapi-widget - 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. vova07/yii2-fileapi-widget

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

vova07/yii2-fileapi-widget
==========================

The FileAPI widget for Yii2 framework.

0.1.9(9y ago)4765.5k↓35.7%26[2 PRs](https://github.com/vova07/yii2-fileapi-widget/pulls)9BSD-3-ClausePHP

Since Oct 21Pushed 7y ago11 watchersCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (9)Security (1)

WARNING: This extension is not more maintained (The base JS script [FileAPI](https://github.com/RubaXa/jquery.fileapi) was deprecated)
======================================================================================================================================

[](#warning-this-extension-is-not-more-maintained-the-base-js-script-fileapi-was-deprecated)

Yii2 FileAPI widget.
====================

[](#yii2-fileapi-widget)

This widget is a Yii 2 wrapper of [FileAPI](https://github.com/RubaXa/jquery.fileapi) plugin.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vova07/yii2-fileapi-widget "*"

```

or add

```
"vova07/yii2-fileapi-widget": "*"

```

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

Usage:
------

[](#usage)

```
// MyController.php

use vova07\fileapi\actions\UploadAction as FileAPIUpload;
...

public function actions()
{
    return [
        'fileapi-upload' => [
            'class' => FileAPIUpload::className(),
            'path' => '/path/to/temp/files'
        ]
    ];
}
```

```
// MyModel.php

use vova07\fileapi\behaviors\UploadBehavior;
...

public function behaviors()
{
    return [
        'uploadBehavior' => [
            'class' => UploadBehavior::className(),
            'attributes' => [
                'preview_url' => [
                    'path' => '/path/to/previews',
                    'tempPath' => '/path/to/temp/files/previews',
                    'url' => '/url/to/previews'
                ],
                'image_url' => [
                    'path' => '/path/to/images',
                    'tempPath' => '/path/to/temp/files/images',
                    'url' => '/url/to/images'
                ]
            ]
        ]
    ];
}
```

```
// _form.php

use vova07\fileapi\Widget as FileAPI;
...

echo $form->field($model, 'preview_url')->widget(
    FileAPI::className(),
    [
        'settings' => [
            'url' => ['/controller/fileapi-upload']
        ]
    ]
);
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.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 ~98 days

Recently: every ~192 days

Total

10

Last Release

3342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2714082?v=4)[Vasile C.](/maintainers/vova07)[@vova07](https://github.com/vova07)

---

Top Contributors

[![vova07](https://avatars.githubusercontent.com/u/2714082?v=4)](https://github.com/vova07 "vova07 (25 commits)")[![acardinale](https://avatars.githubusercontent.com/u/1702922?v=4)](https://github.com/acardinale "acardinale (1 commits)")[![makroxyz](https://avatars.githubusercontent.com/u/2069949?v=4)](https://github.com/makroxyz "makroxyz (1 commits)")[![saochico](https://avatars.githubusercontent.com/u/1377119?v=4)](https://github.com/saochico "saochico (1 commits)")[![webdevsega](https://avatars.githubusercontent.com/u/1552376?v=4)](https://github.com/webdevsega "webdevsega (1 commits)")

---

Tags

file-uploadfileapiyii2yii2-extensionyii2-fileapi-widgetyii2-widgetsfilesuploadyii2widgetyii 2fileapimultiupload

### Embed Badge

![Health badge](/badges/vova07-yii2-fileapi-widget/health.svg)

```
[![Health](https://phpackages.com/badges/vova07-yii2-fileapi-widget/health.svg)](https://phpackages.com/packages/vova07-yii2-fileapi-widget)
```

###  Alternatives

[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

12914.8k](/packages/noam148-yii2-image-manager)[floor12/yii2-module-files

Yii2 module to upload and manage files to your models.

1612.4k6](/packages/floor12-yii2-module-files)[sjaakp/yii2-illustrated-behavior

ActiveRecord Behavior with associated Widget for Yii2.

423.1k](/packages/sjaakp-yii2-illustrated-behavior)[limion/yii2-jquery-fileupload-widget

Blueimp file upload widget for Yii2

1224.5k](/packages/limion-yii2-jquery-fileupload-widget)

PHPackages © 2026

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