abcms/yii2-gallery

There is no license information available for the latest version (v0.3.0) of this package.

Installs: 57

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v0.3.0 2016-10-21 13:24 UTC

This package is auto-updated.

Last update: 2024-04-08 23:09:13 UTC


README

Simple image gallery admin module for yii2.

Installation:

composer require abcms/yii2-gallery

Run the database migration:

./yii migrate --migrationPath=@vendor/abcms/yii2-gallery/migrations

Configuration:

Add module to the admin modules configuration array:

'modules' => [
    'gallery' => [
        'class' => 'abcms\gallery\module\Module',
    ],
],

Add categories and image sizes to params.php under gallery key:

'gallery' => [
    'categories' => [
        1 => [
            'name' => 'News',
            'sizes' => [
                'small' => [
                    'width' => 440,
                    'height' => 440,
                ],
            ],
        ],
    ],
],