Download the PHP package coolanole/yii2-gallery-manager without Composer
On this page you can find all versions of the php package coolanole/yii2-gallery-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-gallery-manager
Gallery Manager usage instructions
Yii2 port of https://github.com/coolanole/yii-gallery-manager
(frontend part mostly without changes, but backend was rewritten almost completely)
Gallery manager screenshots (yii 1.x version, new one has bootstrap 3 styles):
Few more screenshots: drag & drop upload, editing image information, upload progress,
Features
- AJAX image upload
- Optional name and description for each image
- Possibility to arrange images in gallery
- Ability to generate few versions for each image with different configurations
- Drag & Drop
Decencies
- Yii2
- Twitter bootstrap assets (version 3)
- Imagine library
- JQuery UI (included with Yii)
Installation:
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist coolanole/yii2-gallery-manager "*@dev"
or add
"coolanole/yii2-gallery-manager": "*@dev"
to the require section of your composer.json
file.
Usage
Prepare
Add migration to create table for images:
Or better - copy migration to you application(but be sure to remove namespace from it - it should be in global namespace)
Add configurations for upload and store images
Add GalleryBehavior to your model, and configure it, create folder for uploaded files.
See also documentations of imagine for image transformations.
Add GalleryManagerAction in controller somewhere in your application. Also on this step you can add some security checks for this action.
Add ImageAttachmentWidget somewhere in you application, for example in editing from.
Done!
Get uploaded images
Now, you can use uploaded images from gallery like following:
Options
Using non default table name for gallery images(default is {{%gallery_image}}
):
- Add migration that will create table you need
- Change
tableName
property in behavior configuration
All versions of yii2-gallery-manager with dependencies
yiisoft/yii2-imagine Version *
thamtech/yii2-uuid Version *
rosell-dk/webp-convert Version *
spatie/image-optimizer Version *