Download the PHP package zacksleo/yii2-gallery without Composer
On this page you can find all versions of the php package zacksleo/yii2-gallery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-gallery
Yii2 gallery
original yii2-gallery-module
Features:
- Upload image
- Drag image and change position
- Make gallery template
- Use inline widget
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
or add to the require section of your
Migration
yii migrate --migrationPath=@vendor/sadovojav/yii2-gallery-module/migrations
Config
- Attach the module in your config file:
- string
basePath
=@webroot/galleries
- Base path - integer
queryCacheDuration
=86400
- Query cache duration - bool
uniqueName
=false
- Generate unique name
- If you want use custom template, you can set path map
Administration
Galleries manager - /gallery/gallery/index
Using
1. Widget
<?= \sadovojav\gallery\widgets\Gallery::widget([
'galleryId' => $model->galleryId
]); ?>
- integer
galleryId
required - Gallery Id - bool
caption
=false
- Show caption in default template - string
template
=null
- Your custom widget template
2. Inline Widget
See here -> https://github.com/sadovojav/yii2-inline-widgets-behavior
All versions of yii2-gallery with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
kartik-v/yii2-widgets Version *
mongosoft/yii2-upload-behavior Version *
yiisoft/yii2-imagine Version *
kartik-v/yii2-widgets Version *
mongosoft/yii2-upload-behavior Version *
yiisoft/yii2-imagine Version *
The package zacksleo/yii2-gallery contains the following files
Loading the files please wait ....