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

3576.9k—4.2%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 1mo 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

29

—

LowBetter than 59% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity32

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

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[laracasts/cypress

Laravel Cypress Boilerplate

6273.2M4](/packages/laracasts-cypress)[talyssonoc/react-laravel

Package to use ReactJS with Laravel

8944.9k](/packages/talyssonoc-react-laravel)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[emcconville/point-reduction-algorithms

A collection of algorithms for reducing the number of points in polyline

61196.1k1](/packages/emcconville-point-reduction-algorithms)[heyday/silverstripe-menumanager

Allows complex menu management to be handled through the CMS when a simple tree structure is not enough.

36304.4k7](/packages/heyday-silverstripe-menumanager)

PHPackages © 2026

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