A utility library that generates HTML embed tags for audio or video located on a given URL. It also parses and validates given media URLs.
It currently works with 30+ services, including the most important ones like
- YouTube
- Vimeo
- Dailymotion
- TikTok
- Twitch
etc. With community driven updates this aims to be a complete and up-to-date service wrapper lib.
All providers use modern iframe embeds (Flash support was removed as Flash was discontinued in 2020).
https://sandbox.dereuromark.de/sandbox/media-embed
- jbroadway/urlify for slugging
Please feel free to join in and help out to further improve or complete it. There are always some providers changing their URLs/API or some new ones which are not yet completed.
Run
composer require dereuromark/media-embedThis will get the latest tagged version for you.
For detailed documentation see /docs.
Inspired by autoembed.com which already included most of the supported services and laid the foundation of this OOP approach here. There is also this.