PHPackages                             dereuromark/media-embed - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. dereuromark/media-embed

ActiveLibrary[Image &amp; Media](/categories/media)

dereuromark/media-embed
=======================

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

0.7.0(1mo ago)182530.3k—4.7%45[1 PRs](https://github.com/dereuromark/media-embed/pulls)11MITPHPPHP &gt;=8.1CI failing

Since Mar 16Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/dereuromark/media-embed)[ Packagist](https://packagist.org/packages/dereuromark/media-embed)[ GitHub Sponsors](https://github.com/dereuromark)[ RSS](/packages/dereuromark-media-embed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (46)Used By (11)

MediaEmbed
==========

[](#mediaembed)

[![CI](https://github.com/dereuromark/media-embed/workflows/CI/badge.svg)](https://github.com/dereuromark/media-embed/actions?query=workflow%3ACI+branch%3Amaster)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Minimum PHP Version](https://camo.githubusercontent.com/183804d09fec16ca7b6209b007250b7d8db1b915042feb093a9f20e6e1f25359/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7eadac8083a26dec1ef0cf4593e4cf44531672f0a54ee86fbd002242fa6eb9cc/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f6d656469612d656d6265642f6c6963656e73652e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/a448b4c678e7aad84c074e130271887f471f9455b964644d94d864e68402f613/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f6d656469612d656d6265642f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/media-embed)[![Total Downloads](https://camo.githubusercontent.com/2a4ac814930ef907a43bba22d24d8819120d87638246ebcfef99d99512e549a1/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f6d656469612d656d6265642f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/media-embed)[![Coding Standards](https://camo.githubusercontent.com/dbabe22710e675cb88cd0b12196f1477e2376dea497332775692cf1359a75918/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d79656c6c6f772e737667)](https://github.com/php-fig-rectified/fig-rectified-standards)

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 [120+ services](docs/supported.md), including the most important ones like

- YouTube
- Dailymotion
- MyVideo
- Vimeo
- Ustream

etc. With community driven updates this aims to be a complete and up-to-date service wrapper lib.

It uses iframes if possible, and has a fallback on the embed object if necessary.

Demo
----

[](#demo)

Requirements
------------

[](#requirements)

- [jbroadway/urlify](https://github.com/jbroadway/urlify) for slugging

### Note

[](#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
------------

[](#installation)

Run

```
composer require dereuromark/media-embed
```

This will get the latest tagged version for you.

Documentation
-------------

[](#documentation)

For detailed documentation see **[/docs](docs/README.md)**.

Credits
-------

[](#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](https://github.com/oscarotero/Embed).

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity56

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 77.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Recently: every ~87 days

Total

32

Last Release

53d ago

PHP version history (7 changes)0.1.0PHP &gt;5.3.0

0.2.0PHP &gt;=5.4

0.4.0PHP &gt;=5.6

0.5.5PHP &gt;=7.2

0.5.6PHP &gt;=7.3

0.6.0PHP &gt;=7.4

0.6.1PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (159 commits)")[![brendoLoR](https://avatars.githubusercontent.com/u/61713673?v=4)](https://github.com/brendoLoR "brendoLoR (7 commits)")[![microstudi](https://avatars.githubusercontent.com/u/1401520?v=4)](https://github.com/microstudi "microstudi (6 commits)")[![michilehr](https://avatars.githubusercontent.com/u/1243103?v=4)](https://github.com/michilehr "michilehr (4 commits)")[![matthewsuan](https://avatars.githubusercontent.com/u/3340447?v=4)](https://github.com/matthewsuan "matthewsuan (4 commits)")[![derUli](https://avatars.githubusercontent.com/u/1799239?v=4)](https://github.com/derUli "derUli (3 commits)")[![netstyler](https://avatars.githubusercontent.com/u/319755?v=4)](https://github.com/netstyler "netstyler (3 commits)")[![adamdburton](https://avatars.githubusercontent.com/u/62564?v=4)](https://github.com/adamdburton "adamdburton (2 commits)")[![drmonkeyninja](https://avatars.githubusercontent.com/u/357623?v=4)](https://github.com/drmonkeyninja "drmonkeyninja (2 commits)")[![jhuet](https://avatars.githubusercontent.com/u/372409?v=4)](https://github.com/jhuet "jhuet (2 commits)")[![jozydapozy](https://avatars.githubusercontent.com/u/119531?v=4)](https://github.com/jozydapozy "jozydapozy (2 commits)")[![korenskoy](https://avatars.githubusercontent.com/u/285244?v=4)](https://github.com/korenskoy "korenskoy (2 commits)")[![sammyaxe](https://avatars.githubusercontent.com/u/7150578?v=4)](https://github.com/sammyaxe "sammyaxe (2 commits)")[![redbastie](https://avatars.githubusercontent.com/u/64050101?v=4)](https://github.com/redbastie "redbastie (1 commits)")[![curtisgibby](https://avatars.githubusercontent.com/u/1086964?v=4)](https://github.com/curtisgibby "curtisgibby (1 commits)")[![cceglia](https://avatars.githubusercontent.com/u/485592?v=4)](https://github.com/cceglia "cceglia (1 commits)")[![amaury-tom](https://avatars.githubusercontent.com/u/51777037?v=4)](https://github.com/amaury-tom "amaury-tom (1 commits)")[![Erwane](https://avatars.githubusercontent.com/u/712604?v=4)](https://github.com/Erwane "Erwane (1 commits)")[![jeremib](https://avatars.githubusercontent.com/u/565742?v=4)](https://github.com/jeremib "jeremib (1 commits)")[![AleksandrSpicyn](https://avatars.githubusercontent.com/u/2460497?v=4)](https://github.com/AleksandrSpicyn "AleksandrSpicyn (1 commits)")

---

Tags

embedmediamedia-playerphpvideophpaudiovideomediaembediframe

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dereuromark-media-embed/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-media-embed/health.svg)](https://phpackages.com/packages/dereuromark-media-embed)
```

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.2k1](/packages/happyworm-jplayer)[fg/multiplayer

Builds customizable video embed codes from any URL.

446.8k1](/packages/fg-multiplayer)[mediamonks/sonata-media-bundle

A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle

109.8k](/packages/mediamonks-sonata-media-bundle)[askoldex/teletant

Telegram bot framework

201.0k](/packages/askoldex-teletant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
