2017 © Pedro Peláez
 

yii2-extension yii2-image-gallery-selector

multiple image selector from gallery for yii2

image

vivekmarakana/yii2-image-gallery-selector

multiple image selector from gallery for yii2

  • Wednesday, August 3, 2016
  • by vivekmarakana
  • Repository
  • 2 Watchers
  • 2 Stars
  • 308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Yii2 Image Gallery Selector

Total Downloads Monthly Downloads License, (*1)

multiple image selector from gallery for yii2, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist vivekmarakana/yii2-image-gallery-selector "dev-master"

or add, (*5)

"vivekmarakana/vivekmarakana/yii2-image-gallery-selector": "dev-master"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

$images = [];
foreach (Image::find()->each(100) as $row) {
    $images[] = [
        'name' => $row->image_name, //optional
        'url' => $row->url,
        'id' => 'image-' . $row->id,
    ];
}

echo \vivekmarakana\widgets\GallerySelector::widget(['images' => $images]);

The Versions

03/08 2016

dev-master

9999999-dev

multiple image selector from gallery for yii2

  Sources   Download

MIT

The Requires

 

extension yii2 gallery-selector image-selector