globaloxs / yii2-lightbox2
Lightbox widget for Yii2
Package info
github.com/dravix/yii2-lightbox
Type:yii2-extension
pkg:composer/globaloxs/yii2-lightbox2
1.0
2015-05-14 08:02 UTC
Requires
- bower-asset/lightbox2: 2.7.1
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-04 16:50:36 UTC
README
- Lightbox widget based on Lightbox2 extension http://lokeshdhakar.com/projects/lightbox2/
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist branchonline/yii2-lightbox "*"
or add
"branchonline/yii2-lightbox": "*"
to the require section of your composer.json.
Usage
Once the extension is installed, simply add widget to your page as follows:
echo Lightbox::widget([ 'files' => [ [ 'thumb' => 'url/to/thumb.ext', 'original' => 'url/to/original.ext', 'title' => 'optional title', ], ] ]);