Skip to content

A Bolt extension for Lite Youtube and Vimeo Embeds

License

Notifications You must be signed in to change notification settings

bolt/lite-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lite Embed Extension

Author: Dennis Meiderwijk, Bob den Otter

A lightweight extension to display Youtube and Vimeo embeds.

Installation:

composer require bolt/lite-embed

After installation, in your twig file, you can use the {{ lite_embed() }} function to add your Youtube and Vimeo links.

{{ lite_embed('https://www.youtube.com/watch?v=dQw4w9WgXcQ') }}

{{ lite_embed('https://vimeo.com/10551329') }}

A special thanks to luwes for his lite-vimeo-embed and paulirish for his lite-youtube-embed .

Running PHPStan and Easy Codings Standard

First, make sure dependencies are installed:

COMPOSER_MEMORY_LIMIT=-1 composer update

And then run ECS:

vendor/bin/ecs check src