b4djo / yii2-popup-image
Package
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- php: >=5.6.0
- yiisoft/yii2: ^2.0.13
This package is auto-updated.
Last update: 2025-04-28 00:09:57 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, ]); ?>