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.

1.0.0(5d ago)181576.2k↓46.2%45[1 PRs](https://github.com/dereuromark/media-embed/pulls)11MITPHPPHP &gt;=8.1CI passing

Since Mar 16Pushed 3mo 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 3d ago

READMEChangelog (10)Dependencies (18)Versions (48)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://www.php.net/)[![License](https://camo.githubusercontent.com/831ccd1e636c847fec70e852dbbe9a59ca41bd17def386bd4d68b76f23dd55fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465726575726f6d61726b2f6d656469612d656d6265642e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/f501a1cdeaca04c06d3587b263350b69b5df97b5b127a7528029df7db0d35b4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465726575726f6d61726b2f6d656469612d656d6265642e737667)](https://packagist.org/packages/dereuromark/media-embed)[![Total Downloads](https://camo.githubusercontent.com/667f5d22483fe3b854327439cff0a1487cbd5409d5bbbe07136402c53f912967/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465726575726f6d61726b2f6d656469612d656d6265642e737667)](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 [~42 services](docs/supported.md), 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).

Demo
----

[](#demo)

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

[](#requirements)

- PHP 8.1+

Optionally, install [jbroadway/urlify](https://github.com/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

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

70

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity55

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 78.8% 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 ~124 days

Recently: every ~60 days

Total

34

Last Release

5d ago

Major Versions

0.7.1 → 1.0.02026-06-29

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 (175 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

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k902.0k23](/packages/danog-madelineproto)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185702.8k44](/packages/laudis-neo4j-php-client)[happyworm/jplayer

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

4.6k114.8k1](/packages/happyworm-jplayer)

PHPackages © 2026

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