2017 © Pedro Peláez
 

yii2-extension yii2-gallery

image

abcms/yii2-gallery

  • Tuesday, May 15, 2018
  • by abcms
  • Repository
  • 1 Watchers
  • 1 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

Yii2 abcms gallery

Simple image gallery admin module for yii2., (*1)

Installation:

composer require abcms/yii2-gallery

Run the database migration:, (*2)

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

Configuration:

Add module to the admin modules configuration array:, (*3)

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

Add categories and image sizes to params.php under gallery key:, (*4)

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

The Versions