wolfguard/yii2-video-gallery

Yii2 module for video galleries with groups (YouTube, Vimeo)

Installs: 111

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 1

Type:yii2-extension

pkg:composer/wolfguard/yii2-video-gallery

v0.1.0 2015-09-27 22:26 UTC

This package is not auto-updated.

Last update: 2025-10-12 00:15:09 UTC


README

Yii2 module for video galleries with groups (YouTube, Vimeo)

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wolfguard/yii2-video-gallery "*"

or add

"wolfguard/yii2-video-gallery": "*"

to the require section of your composer.json file.

After running

php composer.phar update

run

yii migrate --migrationPath=@vendor/wolfguard/yii2-video-gallery/migrations

After that change your main configuration file config/web.php

<?php return [
    ...
    'modules' => [
        ...
        'video_gallery' => [
            'class' => 'wolfguard\video_gallery\Module',
        ],
        ...
    ],
    ...
];

Usage

Once the extension is installed, simply use it in your code by:

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

or make your own widget to display single video or gallery!