PHPackages                             dpodium/yii2-filemanager - 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. dpodium/yii2-filemanager

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

dpodium/yii2-filemanager
========================

A file manager for Yii2. Allow user to manage files from any location as well as browsing files within the application.

2.0(7mo ago)1489515[5 issues](https://github.com/dpodium/yii2-filemanager/issues)[1 PRs](https://github.com/dpodium/yii2-filemanager/pulls)MITPHPPHP &gt;=5.4.0

Since Nov 19Pushed 7mo ago6 watchersCompare

[ Source](https://github.com/dpodium/yii2-filemanager)[ Packagist](https://packagist.org/packages/dpodium/yii2-filemanager)[ RSS](/packages/dpodium-yii2-filemanager/feed)WikiDiscussions develop Synced today

READMEChangelog (1)Dependencies (9)Versions (4)Used By (0)

File Manager for Yii2
=====================

[](#file-manager-for-yii2)

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

[](#installation)

### Install With Composer

[](#install-with-composer)

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

Either run

```
php composer.phar require dpodium/yii2-filemanager "dev-master"

```

or add

```
"dpodium/yii2-filemanager": "dev-master"

```

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

Execute migration here:

```
yii migrate --migrationPath=@dpodium/filemanager/migrations
yii migrate/down --migrationPath=@dpodium/filemanager/migrations

```

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

Upload file in local:

```
return [
	'modules' => [
            'gridview' => [
                'class' => '\kartik\grid\Module'
            ],
            'filemanager' => [
                'class' => 'dpodium\filemanager\Module',
                'storage' => ['local'],
                // This configuration will be used in 'filemanager/files/upload'
                // To support dynamic multiple upload
                // Default multiple upload is true, max file to upload is 10
                // If multiple set to true and maxFileCount is not set, unlimited multiple upload
                'filesUpload' => [
                    'multiple' => true,
                    'maxFileCount' => 30
                ],
                // in mime type format
                'acceptedFilesType' => [
                    'image/jpeg',
                    'image/png',
                    'image/gif',
                ],
                // MB
                'maxFileSize' => 8,
                // [width, height], suggested thumbnail size is 120X120
                'thumbnailSize' => [120,120]
            ]
        ]
];
```

Upload file to AWS S3:

```
return [
	'modules' => [
	    'gridview' => [
                'class' => '\kartik\grid\Module'
            ],
            'filemanager' => [ // do not change module to other name
                'class' => 'dpodium\filemanager\Module',
                // This configuration will be used in 'filemanager/files/upload'
                // To support dynamic multiple upload
                // Default multiple upload is true, max file to upload is 10
                // If multiple set to true and maxFileCount is not set, unlimited multiple upload
                'filesUpload' => [
                    'multiple' => true,
                    'maxFileCount' => 30
                ],
                'storage' => [
                    's3' => [
                        'key' => 'your aws s3 key',
                        'secret' => 'your aws s3 secret',
                        'bucket' => '',
                        'region' => '',
                        'proxy' => '192.168.16.1:10',
                        'cdnDomain' => '',
                        'prefixPath' => '',
                        'cacheTime' => '', // if empty, by default is 2592000 (30 days)
                    ]
                ],
                // in mime type format
                'acceptedFilesType' => [
                    'image/jpeg',
                    'image/png',
                    'image/gif',
                ],
                // MB
                'maxFileSize' => 8,
                // [width, height], suggested thumbnail size is 120X120
                'thumbnailSize' => [120,120]
            ]
        ]
];
```

You can then access File Manager through the following URL:

```
http://localhost/path/to/index.php?r=filemanager/folders
http://localhost/path/to/index.php?r=filemanager/files

```

In order to use File Manager Browse feature:

```
    use yii\helpers\Html;
    use yii\widgets\ActiveForm;
    use dpodium\filemanager\widgets\FileBrowse;

    // This is just an example to upload a banner
    $form = ActiveForm::begin();
    echo $form->field($model, 'banner_name');
    echo $form->field($model, 'banner_description');

    // if you would like to store file_identifier in your table
    echo $form->field($model, 'file_identifier')->widget(FileBrowse::className(), [
            'multiple' => false, // allow multiple upload
            'folderId' => 1 // set a folder to be uploaded to.
    ]);

    echo Html::submitButton('Submit', ['class' => 'btn btn-primary']);
    ActiveForm::end();

    // !important: modal must be rendered after form
    echo FileBrowse::renderModal();
```

In order to use File Manager TinyMCE integration:

- install `2amigos/yii2-tinymce-widget` via composer

```
    use yii\helpers\Html;
    use yii\widgets\ActiveForm;
    use dpodium\filemanager\widgets\FileBrowseEditor;

    // This is just an example to edit one field
    $form = ActiveForm::begin();

    echo $form->field($model, 'editor')->widget(TinyMce::class, [
            'clientOptions' => [
                // add yii2-filemanager to plugin config
                'plugins' => [
                    "... yii2-filemanager ..."
                ],
                // optional add yii2-filemanager to toolbar
                'toolbar' => "... yii2-filemanager ...",
            ]
        ]);

    echo Html::submitButton('Submit', ['class' => 'btn btn-primary']);
    ActiveForm::end();

    // !important: modal must be rendered after form
    echo FileBrowseEditor::widget([
            'multiple' => false, // allow multiple upload
            'folderId' => 1, // set a folder to be uploaded to.
    ]);
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance56

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

226d ago

### Community

Maintainers

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

---

Top Contributors

[![seerjun](https://avatars.githubusercontent.com/u/11764474?v=4)](https://github.com/seerjun "seerjun (50 commits)")[![priyankadpodium](https://avatars.githubusercontent.com/u/29142957?v=4)](https://github.com/priyankadpodium "priyankadpodium (20 commits)")[![dampfklon](https://avatars.githubusercontent.com/u/1733625?v=4)](https://github.com/dampfklon "dampfklon (5 commits)")[![dpodium-github](https://avatars.githubusercontent.com/u/12998659?v=4)](https://github.com/dpodium-github "dpodium-github (3 commits)")[![isalcedo](https://avatars.githubusercontent.com/u/2588745?v=4)](https://github.com/isalcedo "isalcedo (2 commits)")[![darrenng-dpodium](https://avatars.githubusercontent.com/u/12998063?v=4)](https://github.com/darrenng-dpodium "darrenng-dpodium (1 commits)")

---

Tags

filemanageryii2widgetfilemanagerbrowse

### Embed Badge

![Health badge](/badges/dpodium-yii2-filemanager/health.svg)

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

###  Alternatives

[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

13014.9k](/packages/noam148-yii2-image-manager)

PHPackages © 2026

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