PHPackages                             dkemens/yii2-aws-s3-manager - 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. dkemens/yii2-aws-s3-manager

Abandoned → [skylineos/yii2-s3manager](/?search=skylineos%2Fyii2-s3manager)Yii2-extension[File &amp; Storage](/categories/file-storage)

dkemens/yii2-aws-s3-manager
===========================

A yii2 extension for managing files in AWS S3 buckets

4.1.6(3y ago)26483GPL-3.0JavaScriptPHP &gt;=7.4

Since Oct 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/skylineos/yii2-s3manager)[ Packagist](https://packagist.org/packages/dkemens/yii2-aws-s3-manager)[ RSS](/packages/dkemens-yii2-aws-s3-manager/feed)WikiDiscussions dev Synced yesterday

READMEChangelog (10)Dependencies (8)Versions (23)Used By (0)

A Yii 2 extension for managing files in AWS S3 buckets
======================================================

[](#a-yii-2-extension-for-managing-files-in-aws-s3-buckets)

This extension provides a very customizable method for managing files in [AWS S3 buckets](https://aws.amazon.com/s3/?nc2=h_m1) for the [Yii framework 2.0](http://www.yiiframework.com). It can function on it's own, as a callback for a form field, or integrated with TinyMCE.

For license information check the [LICENSE](LICENSE.md)-file.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist skylineos/yii2-s3manager

```

or add

```
"skylineos/yii2-s3manager": "~3.0.0"
```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

To use this extension, you should add the module to your web configuration. Configuration of the module itself can be done here or on the fly.

```
return [
    //....
    'modules' => [
        's3manager' => [
            'class' => 'skylineos\yii\s3manager\Module',
            // All settings can be configured on the fly regardless of usage type (fileinput, standalone manager, tinymce plugin)
            'configuration' => [
                'bucket' => 'your-bucket-name', // can be overriden with \Yii::$app->params['s3bucket']
                'version' => 'latest',
                'region' => 'your-bucket-region', // can be overriden with \Yii::$app->params['s3region']
                'scheme' => 'http',
            ],
        ],
    ]
];
```

Be certain to check the widgets folder for exposed parameters.

Use
---

[](#use)

### Standalone

[](#standalone)

Simply navigate to /s3manager

### With a file input (active form)

[](#with-a-file-input-active-form)

In your form, add the following (ie. views/post/form.php)

`use skylineos\yii\s3manager\widgets\{FileInput, MediaManagerModal};`

Wherever you want your form field:

```
My Field
