wolfguard/yii2-gallery

Yii2 module for image galleries with groups

Installs: 201

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:yii2-extension

v0.1.2 2015-09-23 16:25 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:49:17 UTC


README

Yii2 module for image galleries with groups

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wolfguard/yii2-gallery "*"

or add

"wolfguard/yii2-gallery": "*"

to the require section of your composer.json file.

After running

php composer.phar update

run

yii migrate --migrationPath=@vendor/wolfguard/yii2-gallery/migrations

After that change your main configuration file config/web.php

<?php return [
    ...
    'modules' => [
        ...
        'gallery' => [
            'class' => 'wolfguard\gallery\Module',
        ],
        ...
    ],
    ...
];

Usage

Once the extension is installed, you can access admin area with url gallery/admin/index.

To display gallery in frontend simply use this widget:

<?= \wolfguard\gallery\widgets\Gallery::widget(['code' => 'gallery-code']); ?>

or make your own widget!