PHP code example of branchonline / yii2-lightbox

1. Go to this page and download the library: Download branchonline/yii2-lightbox 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/ */

    

branchonline / yii2-lightbox example snippets


use branchonline\lightbox\Lightbox;

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

php composer.phar