PHPackages                             pingpong/oembed - 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. pingpong/oembed

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pingpong/oembed
===============

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

1.0.3(11y ago)142.1k3[1 issues](https://github.com/pingpong-labs/oembed/issues)[1 PRs](https://github.com/pingpong-labs/oembed/pulls)MITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/pingpong-labs/oembed)[ Packagist](https://packagist.org/packages/pingpong/oembed)[ RSS](/packages/pingpong-oembed/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (6)Used By (0)

Oembed
======

[](#oembed)

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

[![Build Status](https://camo.githubusercontent.com/c6b4c4786cfe8d54fc04be4447058ed62d9c92268ef6b42eb7f227a8842c5eb1/68747470733a2f2f7472617669732d63692e6f72672f70696e67706f6e672d6c6162732f6f656d6265642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pingpong-labs/oembed)

### Server Requirements

[](#server-requirements)

```
Require PHP 5.4+ or higher.

```

### Installation

[](#installation)

Open your composer.json file, and add the new required package.

```
"pingpong/oembed": "1.0.*"

```

Next, open a terminal and run.

```
composer update

```

After the composer updated. Add new service provider in app/config/app.php.

```
    'Pingpong\Oembed\OembedServiceProvider'
```

Next, Add new alias.

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

Done.

### Usage

[](#usage)

Basic Usage

```
$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.

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

### Documentation

[](#documentation)

Because this package using the library [oscarotero/Embed](https://github.com/oscarotero/Embed), please refer to its documentation for more info.

### License

[](#license)

This package is open-sourced software licensed under [The BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~48 days

Total

5

Last Release

4121d ago

Major Versions

1.0.x-dev → 2.0.x-dev2015-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/5221291be74d1e0ddef6931aa833f02a106df5b972431926321bf4f12d16b62b?d=identicon)[gravitano](/maintainers/gravitano)

---

Top Contributors

[![gravitano](https://avatars.githubusercontent.com/u/5087538?v=4)](https://github.com/gravitano "gravitano (15 commits)")

---

Tags

laravelpingpongoembedlaravel-oembed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pingpong-oembed/health.svg)

```
[![Health](https://phpackages.com/badges/pingpong-oembed/health.svg)](https://phpackages.com/packages/pingpong-oembed)
```

###  Alternatives

[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.8M38](/packages/laravolt-avatar)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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