PHPackages                             pavlyshyn/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. [API Development](/categories/api)
4. /
5. pavlyshyn/oembed

ActiveLibrary[API Development](/categories/api)

pavlyshyn/oembed
================

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

1.5.1(9y ago)13.2k1BSD-3-ClausePHPPHP &gt;=5.4.0

Since Sep 10Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (12)Used By (0)

Oembed
======

[](#oembed)

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

### Server Requirements

[](#server-requirements)

```
Require PHP 5.5+ or higher.

```

### Installation

[](#installation)

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

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

```

Next, open a terminal and run.

```
composer update

```

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

```
    'Simexis\Oembed\OembedServiceProvider'
```

Next, Add new alias.

```
    'Oembed'           => 'Simexis\Oembed\OembedFacade',
```

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 width 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);
```

### 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

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~94 days

Recently: every ~139 days

Total

11

Last Release

3366d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.2PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/50c048e7684ace3d693c7bc59983d1982591316f15d0e6fea983896ecde3e1f7?d=identicon)[pavlyshyn](/maintainers/pavlyshyn)

---

Top Contributors

[![gravitano](https://avatars.githubusercontent.com/u/5087538?v=4)](https://github.com/gravitano "gravitano (15 commits)")[![pavlyshyn](https://avatars.githubusercontent.com/u/1117511?v=4)](https://github.com/pavlyshyn "pavlyshyn (2 commits)")[![adampatterson](https://avatars.githubusercontent.com/u/31537?v=4)](https://github.com/adampatterson "adampatterson (1 commits)")

---

Tags

laraveloembedlaravel-oembedsimexis

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[harris21/laravel-fuse

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

43140.3k](/packages/harris21-laravel-fuse)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120482.3k12](/packages/torchlight-torchlight-laravel)

PHPackages © 2026

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