PHP code example of globaloxs / yii2-lightbox2
1. Go to this page and download the library: Download globaloxs/yii2-lightbox2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
globaloxs / yii2-lightbox2 example snippets
echo Lightbox::widget([
'files' => [
[
'thumb' => 'url/to/thumb.ext',
'original' => 'url/to/original.ext',
'title' => 'optional title',
],
]
]);
php composer.phar