PHPackages                             merujan99/laravel-video-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. merujan99/laravel-video-embed

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

merujan99/laravel-video-embed
=============================

Laravel Package for dereuromark/MediaEmbed With Thumbnail

3579.7k↑22.9%9[2 issues](https://github.com/Merujan99/laravel-video-embed/issues)PHP

Since Aug 26Pushed 5y ago5 watchersCompare

[ Source](https://github.com/Merujan99/laravel-video-embed)[ Packagist](https://packagist.org/packages/merujan99/laravel-video-embed)[ RSS](/packages/merujan99-laravel-video-embed/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Video Embed
===================

[](#laravel-video-embed)

A simple wrapper for dereuromark/MediaEmbed to generate embed HTML for popular media hosting services. + Thumbnail function based on Joe1992w/laravel-media-embed.

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

[](#installation)

```
composer require merujan99/laravel-video-embed:dev-master
```

OR

```
"require": {
    "merujan99/laravel-video-embed": "dev-master",
},
```

```
composer install
```

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

[](#service-provider)

```
'providers' => [
    // Others...
    Merujan99\LaravelVideoEmbed\Providers\LaravelVideoEmbedServiceProvider::class,
],
```

Facade
------

[](#facade)

```
'aliases' => [
    // Others...
    'LaravelVideoEmbed' => Merujan99\LaravelVideoEmbed\Facades\LaravelVideoEmbed::class,
],
```

Publish configuration settings
------------------------------

[](#publish-configuration-settings)

After completing the step above, use the following command to publish configuration settings:

`php artisan vendor:publish --provider="Merujan99\LaravelVideoEmbed\Providers\LaravelVideoEmbedServiceProvider" `

then just add

`use LaravelVideoEmbed;`

this in your controller

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 LaravelVideoEmbed::parse($url, $whitelist);
// ""

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

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

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

return LaravelVideoEmbed::getYoutubeThumbnail($url)
//https://. usage:
```

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

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/79ad7ab948c0a0da6dd6bc0ad6959eb78c5098537091c13f24e92a4f509a45c6?d=identicon)[merujan99](/maintainers/merujan99)

---

Top Contributors

[![Merujan99](https://avatars.githubusercontent.com/u/4623322?v=4)](https://github.com/Merujan99 "Merujan99 (4 commits)")[![nivv](https://avatars.githubusercontent.com/u/4033930?v=4)](https://github.com/nivv "nivv (1 commits)")

### Embed Badge

![Health badge](/badges/merujan99-laravel-video-embed/health.svg)

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

###  Alternatives

[snowplow/referer-parser

Snowplow Refer(r)er parser for PHP

3832.3M33](/packages/snowplow-referer-parser)[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.3M495](/packages/typo3-cms-install)[kongulov/interact-with-enum

Trait for convenient use of ENUM in PHP

3061.4k2](/packages/kongulov-interact-with-enum)

PHPackages © 2026

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