百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

media-embed

> 开发工具
开源

一个 PHP 库,用于处理周围的所有媒体服务,解析它们的 URL 并显示它们的音频/视频。

175 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个 PHP 库,用于处理周围的所有媒体服务,解析它们的 URL 并显示它们的音频/视频。

MediaEmbed

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

bash
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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPembedmediamedia-playerphp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具