PHP code example of wolfguard / yii2-gallery

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

    

wolfguard / yii2-gallery example snippets


 return [
    ...
    'modules' => [
        ...
        'gallery' => [
            'class' => 'wolfguard\gallery\Module',
        ],
        ...
    ],
    ...
];

<?= \wolfguard\gallery\widgets\Gallery::widget(['code' => 'gallery-code']); 

php composer.phar 

php composer.phar update
config/web.php