PHPackages                             andreyv/yii2-aws-file-input-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. andreyv/yii2-aws-file-input-widget

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

andreyv/yii2-aws-file-input-widget
==================================

Allows developers to integrate AWS S3 file upload

1.1.0(7y ago)07481MITPHPPHP &gt;=7.0.0

Since Aug 9Pushed 7y agoCompare

[ Source](https://github.com/andrey-tm/yii2-aws-file-input-widget)[ Packagist](https://packagist.org/packages/andreyv/yii2-aws-file-input-widget)[ RSS](/packages/andreyv-yii2-aws-file-input-widget/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

yii2-aws-file-input-widget
==========================

[](#yii2-aws-file-input-widget)

Yii2 widget allows to integrate AWS S3 file upload. Based on [File Input](https://github.com/kartik-v/bootstrap-fileinput).

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

[](#installation)

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

Either run

```
php composer.phar require andreyv/yii2-aws-file-input-widget "^1.0"

```

or add

```
"andreyv/yii2-aws-file-input-widget": "^1.0"

```

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

Usage
-----

[](#usage)

Add the following to your config file

```
'components' => [
    ...
    'aws' => [
        'class' => andreyv\aws\fileinput\components\Aws::class,
        'credentials' => [
            'key' => 'aws-access-key',
            'secret' => 'aws-secret',
        ],
        'region' => 'aws-region',
        'bucket' => 'bucket-name',
    ],
    ...
],
```

Use with ActiveForm

```
echo $form->field($model, 'image')->widget(AwsFileInput::class, [
    'options' => ['accept' => 'image/*'], //acceptable files
]);
```

```
echo $form->field($model, 'image')->widget(AwsFileInput::class, [
    'awsComponent' => 'awsComponentName', //custom component name, `aws` by default
    'uniqueKey' => 'uniqueKey', //model unique attribute, `id` by default
    'options' => ['accept' => 'image/*'], //acceptable files
]);
```

```
echo $form->field($model, 'image')->widget(AwsFileInput::class, [
    'awsComponent' => 'awsComponentName', //custom component name, `aws` by default
    'fileNameParts' => [$model->someAttribute, 'some-key'], //custom file name parts, if not set `uniqueKey` will be used
    'options' => ['accept' => 'image/*'], //acceptable files
]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~41 days

Total

2

Last Release

2791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d65eec839f435cbf5d71b98227dbefef0d4c71081d1304b291b0aeea068c54f?d=identicon)[andrey-tm](/maintainers/andrey-tm)

---

Top Contributors

[![andrey-tm](https://avatars.githubusercontent.com/u/23074051?v=4)](https://github.com/andrey-tm "andrey-tm (11 commits)")[![utrain-tm](https://avatars.githubusercontent.com/u/8993736?v=4)](https://github.com/utrain-tm "utrain-tm (2 commits)")

---

Tags

awsfileuploadyii2widgetinput

### Embed Badge

![Health badge](/badges/andreyv-yii2-aws-file-input-widget/health.svg)

```
[![Health](https://phpackages.com/badges/andreyv-yii2-aws-file-input-widget/health.svg)](https://phpackages.com/packages/andreyv-yii2-aws-file-input-widget)
```

###  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)

2286.8M95](/packages/kartik-v-yii2-widget-fileinput)[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

12914.8k](/packages/noam148-yii2-image-manager)[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.

23300.9k1](/packages/kartik-v-yii2-editors)[nemmo/yii2-attachments

Extension for file uploading and attaching to the models

6616.6k5](/packages/nemmo-yii2-attachments)

PHPackages © 2026

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