branchonline/yii2-lightbox

Lightbox widget for Yii2

Installs: 113 974

Dependents: 1

Suggesters: 0

Security: 0

Stars: 14

Watchers: 6

Forks: 14

Open Issues: 3

Type:yii2-extension

v1.2.0 2016-10-27 15:13 UTC

This package is auto-updated.

Last update: 2024-04-04 23:45:18 UTC


README

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:

use branchonline\lightbox\Lightbox;

echo Lightbox::widget([
    'files' => [
        [
            'thumb' => 'url/to/thumb.ext',
            'original' => 'url/to/original.ext',
            'title' => 'optional title',
        ],
    ]
]);