Download the PHP package zozoh94/yii2-filemanager without Composer
On this page you can find all versions of the php package zozoh94/yii2-filemanager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-filemanager
Yii2 file manager
This module is based on pendalf89/yii2-filemanager. This module provide interface to collect and access all mediafiles in one place. Inspired by WordPress file manager.
Features
- Integrated with TinyMCE editor.
- Automatically create actually directory for uploaded files like "2014/12". Or you can castomize it in module settings.
- Automatically create thumbs for uploaded images
- Unlimited number of sets of miniatures
- All media files are stored in a database that allows you to attach to your object does not link to the image, and the id of the media file. This provides greater flexibility since in the future will be easy to change the size of thumbnails.
- If your change thumbs sizes, your may resize all existing thumbs in settings.
Installation
The preferred way to install this extension is through composer.
run
or add
to the require section of your composer.json
file.
Apply migration
Configuration
Configuration. Routes
Default values:
If some of these parameters is not defined, default values will be used.
Default, the path to upload files is @webroot/uploads/2016/06
, if you upload file in June 2016. Path for thumbnails is similar.
basePath
Base web directory url. It used for generate absolute path to web directory. It renders by function Yii::getAlias()
.
For example:
``
uploadPath
Path for uploaded files in web directory. It renders without changes.
For example:
dateDirFormat
Directory format for uploaded files. Makes directory recursively. It renders by function date($dateDirFormat, time())
. More about available parameters read here.
For example:
thumbsDirTemplate
Thumbs directory template. Path, where thumb files are located.
Parameters {uploadPath}
and {dateDirFormat}
are replaced by appropriate values in settings.
For example:
Configuration. Thumbs
Thumbnails are resized in "outbound" mode.
Default configuration:
Structure of thumbs configuration:
Alias default
is reserved by module for displaying uploaded images. If you set it, it will be rewrite by module default settings.
Configuration. Other parameters
rename
Set true if you want to rename files if the name is already in use. Default value: false
.
For example:
autoUpload
Set true to enable autoupload. Default value: false
.
Usage
Simple standalone field:
With TinyMCE:
In model you must set mediafile behavior like this example:
Than, you may get mediafile from your owner model. See example:
All versions of yii2-filemanager with dependencies
yiisoft/yii2-imagine Version ~2.0.3
pendalf89/yii2-tinymce Version @dev
kartik-v/yii2-widget-alert Version ~1.1.0
2amigos/yii2-file-upload-widget Version ~1.0.4
bower-asset/domurl Version ~2.1
bower-asset/cropper Version ~2.3.4
fortawesome/font-awesome Version ~4.7.0