b4djo/yii2-popup-image

Package

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.0.0 2018-12-25 21:14 UTC

This package is auto-updated.

Last update: 2024-03-27 21:52:03 UTC


README

Based on a plugin jQuery Lightbox v2.10.0 by Lokesh Dhakar

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist b4djo/yii2-popup-image "*"

or add

"b4djo/yii2-popup-image": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by:

<?= \b4djo\popup_image\PopupImageWidget::widget([
    'thumbnail'     => $thumbnailUrl,
    'source'        => $sourceUrl,
    'description'   => $description,
]); ?>