dereuromark/media-embed
À propos
A PHP library to deal with all those media services around, parsing their URLs and displaying their audios/videos.
Design et médiasProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalMediaEmbed
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 40+ 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.
Providers use modern iframe embeds or provider-generated oEmbed HTML (Flash support was removed as Flash was discontinued in 2020).
Demo
https://sandbox.dereuromark.de/sandbox/media-embed
Requirements
- PHP 8.1+
Optionally, install jbroadway/urlify for best slugging of non-ASCII provider names. Without it, a built-in ASCII slugger is used. You can also inject your own MediaEmbed\Slugger\SluggerInterface.
Note
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.
Installation
Run
composer require dereuromark/media-embed
This will get the latest tagged version for you.
Documentation
For detailed documentation see /docs.
Credits
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.
Explorer des projets similaires
Chargement…