https://github.com/bolt/lite-embed
A Bolt extension for Lite Youtube and Vimeo Embeds
https://github.com/bolt/lite-embed
Last synced: 3 months ago
JSON representation
A Bolt extension for Lite Youtube and Vimeo Embeds
- Host: GitHub
- URL: https://github.com/bolt/lite-embed
- Owner: bolt
- License: mit
- Created: 2021-04-09T08:58:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T05:19:37.000Z (about 4 years ago)
- Last Synced: 2025-02-18T18:47:13.170Z (4 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lite Embed Extension
Author: Dennis Meiderwijk, Bob den Otter
A lightweight extension to display Youtube and Vimeo embeds.
Installation:
```bash
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](https://github.com/luwes) for his [lite-vimeo-embed](https://github.com/luwes/lite-vimeo-embed) and
[paulirish](https://github.com/paulirish) for his [lite-youtube-embed](https://github.com/paulirish/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
```