PHPackages                             joe1992w/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. joe1992w/laravel-media-embed

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

joe1992w/laravel-media-embed
============================

Laravel Wrapper for dereuromark/MediaEmbed to generate embed HTML for popular media hosts

v1.0.1(9y ago)53.4k3MITPHP

Since Mar 3Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Joe1992w/laravel-media-embed)[ Packagist](https://packagist.org/packages/joe1992w/laravel-media-embed)[ RSS](/packages/joe1992w-laravel-media-embed/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Media Embed
===================

[](#laravel-media-embed)

A simple wrapper for dereuromark/MediaEmbed to generate embed HTML for popular media hosting services.

Installation
------------

[](#installation)

```
composer require joe1992w/laravel-media-embed
```

#### OR

[](#or)

```
"require": {
    "joe1992w/laravel-media-embed": "^1.0",
},
```

```
composer install
```

Service Provider
----------------

[](#service-provider)

```
'providers' => [
    // Others...
    Joe1992w\LaravelMediaEmbed\Providers\LaravelMediaEmbedServiceProvider::class,
],
```

Facade
------

[](#facade)

```
'aliases' => [
    // Others...
    'LaravelMediaEmbed' => Joe1992w\LaravelMediaEmbed\Facades\LaravelMediaEmbed::class,
],
```

Usage
-----

[](#usage)

```
//URL to be used for embed generation
$url = "https://www.youtube.com/watch?v=8eK-5ivYb3o";

//Optional array of website names, if present any websites not in the array will result in false being returned by the parser
$whitelist = ['YouTube', 'Vimeo'];

//Optional parameters to be appended to embed
$params = [
    'autoplay' => 1,
    'loop' => 1
  ];

//Optional attributes for embed container
$attributes = [
  'type' => null,
  'class' => 'iframe-class',
  'data-html5-parameter' => true
];

return LaravelMediaEmbed::parse($url, $whitelist);
// ""

return LaravelMediaEmbed::parse($url);
// ""

return LaravelMediaEmbed::parse($url, ['Vimeo']);
// false

return LaravelMediaEmbed::parse($url, $whitelist, $params, $attributes)
//
```

Supported Hosts
---------------

[](#supported-hosts)

Please see [dereuromark/MediaEmbed](https://github.com/dereuromark/MediaEmbed)

Supported Website Whitelist names
---------------------------------

[](#supported-website-whitelist-names)

NameYouTubeFacebookDailymotionMetaCafeVimeo123video5min Life VideopediaAdultSwimAniBoomAOL Video (Old)AparatArchive.orgAtomBlastro$2BoFunkBreakBrightcove.comCBS NewsCellfishClarinClip.vnClipFish (Old)ClipFish (Special)ClipFish (New)ClipJunkieClipMoonClipShackCNetTVCollegeHumorTheDailyShowColbertNationCrackleCrunchyRollCurrentDailyhahaDave.tvDotSub (w/o Captions)DoubleVikingdropshots.comDv.ououDivshareEASportsWorldEbaumsWorldESPNFandomeFlickrFoxheadFunnyOrDieFunMansionG4TVGameKyoGameSpotGameTrailers (Inc. User Movies)Gametube.orgGameVideos.1upGarageTvGloriaGoEarGood.ISGlumbertGodTubeGrindTvGuzerTheHubHowcastHulu (Usa Only)HumourVideo.i.uaIGNiJiggIMDBImageShackIndyaRocksiReportIzlesene§JamendoJokerooJujuNation VideoJujuNation AudioJustinTVKewegoKoreusLast.fm (Audio)Last.fm (Video)LiberoLiveLeakLiveVideoMSNBCVideo.mail.ruMadnessVideoMetatubeMotionBoxMporaMp3tubeMtvU (Usa Only)MP3 AudioMyNetMyShows.cn/SeeHaha.comMySpaceTvMyVideoMyViM ThaiNewGroundsNhacCuaTuiOnSmashOrbPhotobucketPikNikTubeProject PlaylistPutfileRamblerRawVegasRuTubeScreencastScreenToasterSevenLoadShareViewSharkleSmotriSnotrSouthPark StudiosSpace.tv.cctv.comSpikeSongzaStreetfireStupidVideosTagTéléTed.comThe OnionTinyPicTodays Big ThingTrailerAddictTrTubeTriluliluTu.tvTudouTumblr (Music)TwitvidUOL VideoLogu-TubeUstreamVideoJugvideos.sapoVidiacViddlerVideaVidiLifeVidMaxVidivodoVoiceThreadWeGameWebshots (Slideshows)WistiaYahoo Video HKYahoo VideoYahoo Music VideosYouKusina videoXVideosLocal Content

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

3446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0efb7b600c2448aa14cb6de24060dd22163aaab8a89aa6e2dbe4b92ea256888f?d=identicon)[joe1992w](/maintainers/joe1992w)

---

Top Contributors

[![Joe1992w](https://avatars.githubusercontent.com/u/2895165?v=4)](https://github.com/Joe1992w "Joe1992w (5 commits)")

---

Tags

embedlaravellaravel-5-packagevimeoyoutubelaravelpackage-development

### Embed Badge

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

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

###  Alternatives

[statikbe/laravel-filament-flexible-content-blocks

The Laravel Filament Flexible Content Blocks package helps you to easily create content in Filament for any model, with predefined or custom blocks, and foreach block an extendable Blade view component.

17927.9k6](/packages/statikbe-laravel-filament-flexible-content-blocks)[stephenjude/filament-blog

Filament Blog Builder

20919.9k](/packages/stephenjude-filament-blog)[algoyounes/laravel-package-skeleton

Laravel Package Skeleton for streamlined package development

281.3k](/packages/algoyounes-laravel-package-skeleton)

PHPackages © 2026

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