/social-media-aggregator-youtube-plugin

Youtube plugin for Milosa Social Media Aggregator

Primary LanguagePHPMozilla Public License 2.0MPL-2.0

Milosa Social Media Aggregator Youtube Plugin

Build Status Coverage Status

Youtube plugin for Milosa Social Media Aggregator Bundle

Installation

composer require milosa/social-media-aggregator-youtube-plugin

Usage

Get Youtube API access here: https://developers.google.com/youtube/v3/getting-started

Add the following config to your configuration file:

Sample config file

milosa_social_media_aggregator:
    plugins:
        youtube:
            auth_data:
                api_key: '%env(YOUTUBE_API_KEY)%'
            enable_cache: true
            cache_lifetime: 3600
            number_of_items: 20
            channel_id: UCLA_DiR1FfKNvjuUpBHmylQ
            template: youtube.twig