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

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

akula22/yii2-fileapi-widget
===========================

The FileAPI widget for Yii2 framework.

0.1.9(9y ago)051BSD-3-ClausePHP

Since Oct 21Pushed 7y agoCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (0)

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 akula22/yii2-fileapi-widget "*"

```

or add

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

```

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

Usage:
------

[](#usage)

```
// MyController.php

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

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

```
// MyModel.php

use akula22\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 akula22\fileapi\Widget as FileAPI;
...

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.8% 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

3385d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7839943?v=4)[akula22](/maintainers/akula22)[@akula22](https://github.com/akula22)

---

Top Contributors

[![vova07](https://avatars.githubusercontent.com/u/2714082?v=4)](https://github.com/vova07 "vova07 (24 commits)")[![acardinale](https://avatars.githubusercontent.com/u/1702922?v=4)](https://github.com/acardinale "acardinale (1 commits)")[![akula222](https://avatars.githubusercontent.com/u/16341861?v=4)](https://github.com/akula222 "akula222 (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

filesuploadyii2widgetyii 2fileapimultiupload

### Embed Badge

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

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

###  Alternatives

[vova07/yii2-fileapi-widget

The FileAPI widget for Yii2 framework.

4766.0k9](/packages/vova07-yii2-fileapi-widget)[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

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

Yii2 module to upload and manage files to your models.

1612.6k6](/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.7k](/packages/limion-yii2-jquery-fileupload-widget)

PHPackages © 2026

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