Skip to content

YouTube & Vimeo videos for your Craft CMS field and template.

License

Notifications You must be signed in to change notification settings

boundstate/craft-videos

 
 

Repository files navigation

Videos for Craft CMS 5.x

Connect to YouTube & Vimeo and publish social videos on your website.

Requirements

This plugin requires Craft CMS 5.0.0+.

Installation

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project

# tell Composer to load the plugin
composer require boundstate/craft-videos

# tell Craft to install the plugin
./craft plugin/install videos

Configuration

config/videos.php

<?php
return [
    // cache API requests
    'enableCache' => true,
    // https://php.net/dateinterval.construct
    'cacheDuration' => 'PT15M',
    // OAuth provider options
    'oauthProviderOptions' => [
        'youtube' => [
            'clientId' => '000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
            'clientSecret' => 'xxxxxxxxxxxxxxxxxxxxxxxx'
        ],
        'vimeo' => [
            'clientId' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            'clientSecret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
        ],
    ],
    // videos per page in the explorer
    'videosPerPage' => 30,
];

Resources

About

YouTube & Vimeo videos for your Craft CMS field and template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • HTML 71.4%
  • PHP 20.3%
  • Vue 3.9%
  • JavaScript 3.1%
  • Other 1.3%