Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micronull/yii2-simple-filemanager
A simple file manager for yii2 framework.
https://github.com/micronull/yii2-simple-filemanager
Last synced: 3 months ago
JSON representation
A simple file manager for yii2 framework.
- Host: GitHub
- URL: https://github.com/micronull/yii2-simple-filemanager
- Owner: micronull
- License: mit
- Created: 2018-01-18T12:24:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-29T03:12:10.000Z (over 2 years ago)
- Last Synced: 2024-09-29T23:01:35.425Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 161 KB
- Stars: 7
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2 simple filemanager
[![Maintainability](https://api.codeclimate.com/v1/badges/2aef3abcdff74d094710/maintainability)](https://codeclimate.com/github/De-Luxis/yii2-simple-filemanager/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/2aef3abcdff74d094710/test_coverage)](https://codeclimate.com/github/De-Luxis/yii2-simple-filemanager/test_coverage)
[![Latest Stable Version](https://poser.pugx.org/de-luxis/yii2-simple-filemanager/v/stable?format=flat)](https://packagist.org/packages/de-luxis/yii2-simple-filemanager)
[![Latest Unstable Version](https://poser.pugx.org/de-luxis/yii2-simple-filemanager/v/unstable?format=flat)](https://packagist.org/packages/de-luxis/yii2-simple-filemanager)
[![License](https://poser.pugx.org/de-luxis/yii2-simple-filemanager/license?format=flat)](https://packagist.org/packages/de-luxis/yii2-simple-filemanager)A simple file manager. Having minimal dependencies, but great opportunities for expansion.
## Features
* Do not need a database. Consequently, there are no migrations.
* It's simple.## TODO
* Preview for images.
* Extended information about files.
* Possibility to limit the types of downloaded files through the configuration.
* Add support RBAC.## Screenshots
Basic app template
![base app en](https://raw.githubusercontent.com/De-Luxis/yii2-simple-filemanager/master/screenshots/base-app-en.png)
Empty files. Basic app template i18n.
![base app en](https://raw.githubusercontent.com/De-Luxis/yii2-simple-filemanager/master/screenshots/base-app-ru-empty.png)
Submodule.
![base app en](https://raw.githubusercontent.com/De-Luxis/yii2-simple-filemanager/master/screenshots/submodule.png)
Submodule i18n.
![base app en](https://raw.githubusercontent.com/De-Luxis/yii2-simple-filemanager/master/screenshots/submodule-ru.png)
## Installation
Run the command.
`composer require de-luxis/yii2-simple-filemanager`
Or add to your composer.json
`"de-luxis/yii2-simple-filemanager": "*"`
Now, register the module in the configuration of your application.
On an example of the [basic application template](https://github.com/yiisoft/yii2-app-basic) `config/web.php`
```
'modules' => [
'filemanager' => [
'class' => 'DeLuxis\Yii2SimpleFilemanager\SimpleFilemanagerModule'
],
],
```The file manager will be available at `index.php?r=filemanager`
## Submodule
The file manager can be included as a submodule. For example, for your administration panel.
To do this, in the method of initializing your module, you need to add an entry that the file manager will connect.```
public function init()
{
parent::init();$this->modules = [
'filemanager' => [
'class' => 'DeLuxis\Yii2SimpleFilemanager\SimpleFilemanagerModule',
'as access' => [
'class' => '\yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
]
]
]
];
}
```
With the help of a record `as access` you can regulate access rights.