PHPackages                             zrk4939/yii2-files-module - 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. zrk4939/yii2-files-module

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

zrk4939/yii2-files-module
=========================

Files Module

1.3.6(3y ago)0107UnlicensePHPPHP &gt;=7.0

Since Mar 23Pushed 3y agoCompare

[ Source](https://github.com/zrk4939/yii2-files-module)[ Packagist](https://packagist.org/packages/zrk4939/yii2-files-module)[ RSS](/packages/zrk4939-yii2-files-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (0)

yii2-files-module
=================

[](#yii2-files-module)

DOES NOT WORK
=============

[](#does-not-work)

Files manager module for the [Yii2](http://www.yiiframework.ru/) framework

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

[](#installation)

add

```
"zrk4939/files-module": "@dev",

```

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

and

```
{
    "type": "vcs",
    "url": "https://github.com/zrk4939/files-module.git"
}

```

to the repositories array of your `composer.json` file.

Usage
-----

[](#usage)

### main.php

[](#mainphp)

```
 'files' => [
    'class' => 'zrk4939\modules\files\FilesModule',
    'extensions' => ['png', 'jpg', 'jpeg', 'gif', 'pdf', 'txt', 'zip'],
    'uploadPath' => '@webroot/uploads',
    'rootPath' => '@webroot',
 ],
```

### i18n

[](#i18n)

```
'files*' => [
    'class' => 'yii\i18n\PhpMessageSource',
    'sourceLanguage' => 'en-US',
    'basePath' => "@zrk4939/modules/files/messages",
    'fileMap' => [
        'files' => 'translation.php',
    ]
],
```

### Widget

[](#widget)

```
