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

ActiveLibrary

godscodes/laravel-video-embed
=============================

Laravel Package for godscodes/MediaEmbed With Thumbnail

055PHP

Since Feb 6Pushed 2y agoCompare

[ Source](https://github.com/godscodes/laravel-video-embed)[ Packagist](https://packagist.org/packages/godscodes/laravel-video-embed)[ RSS](/packages/godscodes-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 godscodes/laravel-video-embed:dev-master
```

OR

```
"require": {
    "godscodes/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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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/109ebbfdeb2d2b671fc72e6fa33d8505a63d4a25b0f696c850bea46ffd6f7c43?d=identicon)[godscodes](/maintainers/godscodes)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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