PHP code example of coderius / yii2-lightbox2-widget
1. Go to this page and download the library: Download coderius/yii2-lightbox2-widget 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/ */
coderius / yii2-lightbox2-widget example snippets
use coderius\lightbox2\Lightbox2;
<?= coderius\lightbox2\Lightbox2::widget([
'clientOptions' => [
'resizeDuration' => 200,
'wrapAround' => true,
]
]);
php composer.phar