Download the PHP package fabiomlferreira/yii2-file-manager without Composer
On this page you can find all versions of the php package fabiomlferreira/yii2-file-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fabiomlferreira/yii2-file-manager
More information about fabiomlferreira/yii2-file-manager
Files in fabiomlferreira/yii2-file-manager
Package yii2-file-manager
Short Description File Manager for Yii2
License MIT
Informations about the package yii2-file-manager
Yii2 file manager
This module provide interface to collect and access all mediafiles in one place. This module have an option to enable on the fly thumbnail generation.
Features
- Integrated with TinyMCE editor.
- Automatically create actually directory for uploaded files like "2017/03".
- Automatically create thumbs for uploaded images or on the fly
- 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.
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
):
If you need to keep the aspect ratio without white margins you can put the mode to INSET and also set to true the keepAspectRatio property. This will use the Box method to fix the highest side and reside the other side proportionally:
If you need to keep the aspect ratio and upscale the image to have allways se selected size, even if some parts of the image are cropped.
If you need to change the color and transparency of borders in inset resizes use this.
If you set the 'thumbnailOnTheFly' to true you need to configure the component Thumbnail
Read the Documentation for Thumbnail component
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-file-manager 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 *
bower-asset/holderjs Version 2.8
kinglozzer/tinypng Version 0.1.*