2017 © Pedro Peláez
 

library oembed

Laravel Oembed

image

pingpong/oembed

Laravel Oembed

  • Sunday, March 22, 2015
  • by gravitano
  • Repository
  • 1 Watchers
  • 13 Stars
  • 2,001 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Oembed

Laravel 4 - Retrieve page info using oembed, opengraph, etc., (*1)

Build Status, (*2)

Server Requirements

Require PHP 5.4+ or higher.

Installation

Open your composer.json file, and add the new required package., (*3)

"pingpong/oembed": "1.0.*"

Next, open a terminal and run., (*4)

composer update

After the composer updated. Add new service provider in app/config/app.php., (*5)

    'Pingpong\Oembed\OembedServiceProvider'

Next, Add new alias., (*6)

    'Oembed'           => 'Pingpong\Oembed\Facades\Oembed',

Done., (*7)

Usage

Basic Usage, (*8)

$info = Oembed::get('https://www.youtube.com/watch?v=PP1xn5wHtxE');

//Get content info

$info->title; //The page title
$info->description; //The page description
$info->url; //The canonical url
$info->type; //The page type (link, video, image, rich)

$info->images; //List of all images found in the page
$info->image; //The image choosen as main image
$info->imageWidth; //The with of the main image
$info->imageHeight; //The height  of the main image

$info->code; //The code to embed the image, video, etc
$info->width; //The with of the embed code
$info->height; //The height of the embed code
$info->aspectRatio; //The aspect ratio (width/height)

$info->authorName; //The (video/article/image/whatever) author 
$info->authorUrl; //The author url

$info->providerName; //The provider name of the page (youtube, twitter, instagram, etc)
$info->providerUrl; //The provider url
$info->providerIcons; //All provider icons found in the page
$info->providerIcon; //The icon choosen as main icon

Caching the results., (*9)

$info = Oembed::cache($url, $options);

Documentation

Because this package using the library oscarotero/Embed, please refer to its documentation for more info., (*10)

License

This package is open-sourced software licensed under The BSD 3-Clause License, (*11)

The Versions

22/03 2015

2.0.x-dev

2.0.9999999.9999999-dev

Laravel Oembed

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed

05/02 2015

1.0.x-dev

1.0.9999999.9999999-dev

Laravel 4 - Retrieve page info using oembed, opengraph, etc.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed

05/02 2015

dev-master

9999999-dev

Laravel 4 - Retrieve page info using oembed, opengraph, etc.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed

10/09 2014

1.0.3

1.0.3.0

Laravel 4 - Retrieve page info using oembed, opengraph, etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed

10/09 2014

1.0.1

1.0.1.0

Laravel 4 - Retrieve page info using oembed, opengraph, etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed

10/09 2014

1.0.0

1.0.0.0

Laravel 4 - Retrieve page info using oembed, opengraph, etc.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel pingpong oembed laravel-oembed