Download the PHP package mjm/yii2-filemanager without Composer
On this page you can find all versions of the php package mjm/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 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".
- Automatically create actually directory for uploaded files like "2014/12/user12" IF useUserOwner is true in module (12 is userId)
- 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.
- If your change useUserOwner attribute to true in module, file manager and upload limited to user login
Screenshots
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Apply migration
Configuration:
By default, thumbnails are resized in "outbound" or "fill" mode. To switch to "inset" or "fit" mode, use mode
parameter and provide. Possible values: outbound
(\Imagine\Image\ImageInterface::THUMBNAIL_OUTBOUND
) or inset
(\Imagine\Image\ImageInterface::THUMBNAIL_INSET
):
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 *
pendalf89/yii2-tinymce Version *
kartik-v/yii2-widget-alert Version *
kartik-v/yii2-widget-select2 Version *
2amigos/yii2-file-upload-widget Version *