2017 © Pedro Peláez
 

library embed

Media Embed (for Laravel or as a standalone).

image

sagsoz06/embed

Media Embed (for Laravel or as a standalone).

  • Friday, November 18, 2016
  • by sagsoz06
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

Embed

Generate media html (YouTube, Vimeo, Kickstarter etc.) based on the url., (*1)

Installation

Add following require to your composer.json file:, (*2)

For Laravel 5:, (*3)

    "cohensive/embed": "dev-master"
    // or
    "cohensive/embed": "5.0.*"

For Laravel 4:, (*4)

    "cohensive/embed": "4.3.1"

Then run composer install or composer update to download it and autoload., (*5)

In providers array you need to add new package:, (*6)

'providers' => array(

    //...
    'Cohensive\Embed\EmbedServiceProvider',
    //...

)

In aliases:, (*7)

'aliases' => array(

    //...
    'Embed' => 'Cohensive\Embed\Facades\Embed'
    //...

)

Usage

$embed = Embed::make('http://youtu.be/uifYHNyH-jA')->parseUrl()
// Will return Embed class if provider is found. Otherwie will return false - not found. No fancy errors for now.
if ($embed) {
    // Set width of the embed.
    $embed->setAttribute(['width' => 600]);

    // Print html: '<iframe width="600" height="338" src="//www.youtube.com/embed/uifYHNyH-jA" frameborder="0" allowfullscreen></iframe>'.
    // Height will be set automatically based on provider width/height ratio.
    // Height could be set explicitly via setAttr() method.
    echo $embed->getHtml();
}

The Versions

18/11 2016

dev-master

9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.9

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

17/11 2016

v4.3.3

4.3.3.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

17/11 2016

v5.3.1

5.3.1.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

08/11 2016

4.3.x-dev

4.3.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

08/11 2016

v4.3.2

4.3.2.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

08/11 2016

5.3.x-dev

5.3.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

08/11 2016

v5.3.0

5.3.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

09/08 2016

v4.3.1

4.3.1.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

05/04 2016

v4.3.0

4.3.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

05/04 2016

5.2.x-dev

5.2.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

05/04 2016

v5.2.0

5.2.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Kane Cohen

laravel media youtube vimeo embed

11/09 2015

v5.1.0

5.1.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

06/02 2015

5.0.x-dev

5.0.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

06/02 2015

v5.0.0

5.0.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

15/01 2015

4.2.x-dev

4.2.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

15/01 2015

v4.2.0

4.2.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

11/12 2013

4.0.x-dev

4.0.9999999.9999999-dev

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed

11/12 2013

v4.0.0

4.0.0.0

Media Embed (for Laravel or as a standalone).

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

by Kane Cohen

laravel media youtube vimeo embed