PHP code example of himiklab / yii2-colorbox-widget

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

    

himiklab / yii2-colorbox-widget example snippets


use himiklab\colorbox\Colorbox;

<?= Colorbox::widget([
    'targets' => [
        '.colorbox' => [
            'maxWidth' => 800,
            'maxHeight' => 600,
        ],
    ],
    'coreStyle' => 2
]) 

php composer.phar