2017 © Pedro PelĂĄez
 

library laravel-media-embed

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

image

joe1992w/laravel-media-embed

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

  • Tuesday, April 4, 2017
  • by joe1992w
  • Repository
  • 2 Watchers
  • 3 Stars
  • 325 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Laravel Media Embed

A simple wrapper for dereuromark/MediaEmbed to generate embed HTML for popular media hosting services., (*1)

Installation

composer require joe1992w/laravel-media-embed

OR

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

````bash composer install, (*2)


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

Facade

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

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

Please see dereuromark/MediaEmbed, (*3)

Supported Website Whitelist names

Name
YouTube Facebook Dailymotion
MetaCafe Vimeo 123video
5min Life Videopedia AdultSwim
AniBoom AOL Video (Old) Aparat
Archive.org Atom Blastro
$2 BoFunk Break
Brightcove.com CBS News Cellfish
Clarin Clip.vn ClipFish (Old)
ClipFish (Special) ClipFish (New)
ClipJunkie ClipMoon ClipShack
CNetTV CollegeHumor TheDailyShow
ColbertNation Crackle CrunchyRoll
Current Dailyhaha Dave.tv
DotSub (w/o Captions) DoubleViking dropshots.com
Dv.ouou Divshare EASportsWorld
EbaumsWorld ESPN Fandome
Flickr Foxhead FunnyOrDie
FunMansion G4TV GameKyo
GameSpot GameTrailers (Inc. User Movies) Gametube.org
GameVideos.1up GarageTv Gloria
GoEar Good.IS Glumbert
GodTube GrindTv Guzer
TheHub Howcast Hulu (Usa Only)
Humour Video.i.ua IGN
iJigg IMDB ImageShack
IndyaRocks iReport Izlesene
§Jamendo Jokeroo JujuNation Video
JujuNation Audio JustinTV Kewego
Koreus Last.fm (Audio) Last.fm (Video)
Libero LiveLeak LiveVideo
MSNBC Video.mail.ru MadnessVideo
Metatube MotionBox Mpora
Mp3tube MtvU (Usa Only) MP3 Audio
MyNet MyShows.cn/SeeHaha.com MySpaceTv
MyVideo MyVi M Thai
NewGrounds NhacCuaTui OnSmash
Orb Photobucket PikNikTube
Project Playlist Putfile Rambler
RawVegas RuTube Screencast
ScreenToaster SevenLoad ShareView
Sharkle Smotri Snotr
SouthPark Studios Space.tv.cctv.com Spike
Songza Streetfire StupidVideos
TagTélé Ted.com The Onion
TinyPic Todays Big Thing TrailerAddict
TrTube Trilulilu Tu.tv
Tudou Tumblr (Music) Twitvid
UOL VideoLog u-Tube Ustream
VideoJug videos.sapo Vidiac
Viddler Videa VidiLife
VidMax Vidivodo VoiceThread
WeGame Webshots (Slideshows) Wistia
Yahoo Video HK Yahoo Video Yahoo Music Videos
YouKu sina video XVideos
Local Content

The Versions

04/04 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Joe Ware

laravel package development

05/03 2017

v1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

by Joe Ware

laravel package development

03/03 2017

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Joe Ware

laravel package development