PHPackages                             markup/oembed-bundle - 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. [Image &amp; Media](/categories/media)
4. /
5. markup/oembed-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

markup/oembed-bundle
====================

Bundle with a way of defining oEmbed providers, and rendering oEmbed in templates.

2.0.0(6y ago)455.9k2MITPHPPHP &gt;=7.1CI failing

Since Jul 19Pushed 6y ago4 watchersCompare

[ Source](https://github.com/usemarkup/OEmbedBundle)[ Packagist](https://packagist.org/packages/markup/oembed-bundle)[ RSS](/packages/markup-oembed-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

MarkupOEmbedBundle
==================

[](#markupoembedbundle)

[![Build Status](https://camo.githubusercontent.com/2c2285ae159be76d13fef894ae8a0a714cf54a59610904637e082a142e03229e/68747470733a2f2f6170692e7472617669732d63692e6f72672f7573656d61726b75702f4f456d62656442756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/usemarkup/OEmbedBundle)

Installation
------------

[](#installation)

You can install this bundle using composer or add the package to your composer.json file directly.

```
   composer require markup/oembed-bundle
```

After you have installed the package, you just need to add the bundle to your AppKernel.php file:

```
   // in AppKernel::registerBundles()
   $bundles = array(
       // ...
       new Markup\OEmbedBundle\MarkupOEmbedBundle(),
       // ...
   );
```

About
-----

[](#about)

This Symfony2 bundle offers the ability to easily define integrations with [OEmbed](http://oembed.com/) providers on an ad-hoc basis without needing to make use of a service like [Embed.ly](http://embed.ly/).

Usage
-----

[](#usage)

Say you want to include Youtube videos using OEmbed - you can set up a provider as semantic configuration in your config.yml file:

```
    markup_o_embed:
        providers:
            youtube:
                endpoint: http://www.youtube.com/oembed
                scheme: "http://www.youtube.com/watch?v=$ID$"
                code_property: html
```

You can then render oEmbed blocks in a template either by referencing the media ID and provider inline:

```
    {{ markup_oembed('dQw4w9WgXcQ', 'youtube', {}) }}
```

or if you have passed an object of class `Markup\OEmbedBundle\OEmbed\Reference` into your template:

```
    use Markup\OEmbedBundle\OEmbed\Reference;

    $oEmbed = new Reference('dQw4w9WgXcQ', 'youtube');
    $twig->render('my_template.html.twig', array('oembed' => $oEmbed));
```

you can then reference it slightly differently:

```
    {{ markup_oembed_render(oembed, {}) }}
```

License
-------

[](#license)

Released under the MIT License. See LICENSE.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~462 days

Total

3

Last Release

2301d ago

Major Versions

1.0.1 → 2.0.02020-01-30

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

2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/baa6c222b01edf945aa4e5e362583bac91f303c2a620d8774a9a5a742ade8e07?d=identicon)[gsdev](/maintainers/gsdev)

![](https://www.gravatar.com/avatar/8c89b3982be4e6cd23e749f617e809147f98aca5f45bf24c3b5195598a4c4bfd?d=identicon)[calumbrodie](/maintainers/calumbrodie)

![](https://www.gravatar.com/avatar/67cf8ed88be79605642722cbc5902206c2e51adf755f70cfff04b2c7e5abc9ce?d=identicon)[shieldo](/maintainers/shieldo)

---

Top Contributors

[![shieldo](https://avatars.githubusercontent.com/u/97280?v=4)](https://github.com/shieldo "shieldo (16 commits)")[![peterlenagh](https://avatars.githubusercontent.com/u/657923?v=4)](https://github.com/peterlenagh "peterlenagh (4 commits)")[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (1 commits)")[![NeilMasters](https://avatars.githubusercontent.com/u/6899269?v=4)](https://github.com/NeilMasters "NeilMasters (1 commits)")[![yankielap](https://avatars.githubusercontent.com/u/15002872?v=4)](https://github.com/yankielap "yankielap (1 commits)")

---

Tags

mediaoembed

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[essence/essence

Extracts information about medias on the web, like youtube videos, twitter statuses or blog articles.

770562.9k3](/packages/essence-essence)[cohensive/oembed

Media embed generation using OEmbed protocol.

3567.1k](/packages/cohensive-oembed)[jolicode/media-bundle

A media management bundle for Symfony applications, with Easyadmin and SonataAdmin integrations.

1054.9k](/packages/jolicode-media-bundle)[agence-adeliom/easy-media-bundle

A Symfony Media manager bundle for EasyAdmin

3016.8k2](/packages/agence-adeliom-easy-media-bundle)[mediamonks/sonata-media-bundle

A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle

109.8k](/packages/mediamonks-sonata-media-bundle)[mezcalito/imgproxy-bundle

115.7k2](/packages/mezcalito-imgproxy-bundle)

PHPackages © 2026

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