PHPackages                             getolympus/olympus-dionysos-field-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. [Framework](/categories/framework)
4. /
5. getolympus/olympus-dionysos-field-oembed

ActiveOlympus-field[Framework](/categories/framework)

getolympus/olympus-dionysos-field-oembed
========================================

oEmbed field, this component is a part of the Olympus Dionysos fields.

v0.0.4(2y ago)01892MITJavaScript

Since Mar 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/GetOlympus/olympus-dionysos-field-oembed)[ Packagist](https://packagist.org/packages/getolympus/olympus-dionysos-field-oembed)[ Docs](https://github.com/GetOlympus/olympus-dionysos-field-oembed)[ RSS](/packages/getolympus-olympus-dionysos-field-oembed/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (6)Used By (2)

[![](https://github.com/GetOlympus/olympus-dionysos-field-oembed/raw/master/assets/field-oembed.png)](https://github.com/GetOlympus/olympus-dionysos-field-oembed/blob/master/assets/field-oembed.png)

Dionysos oEmbed Field
=====================

[](#dionysos-oembed-field)

[![Olympus Component](https://camo.githubusercontent.com/f483886a465a9e44005a352c6c1ba6556689a579ecf0d8b984cf60becaaa878c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f722d4f6c796d7075732d3434636331312e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus)[![CodeFactor Grade](https://camo.githubusercontent.com/54bce4299fc63063f71ed9f2756ee1105d01f5aee15b5990ab714c7441d2ba8e/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f4765744f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d6f656d6265642f62616467653f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/getolympus/olympus-dionysos-field-oembed)[![Packagist Version](https://camo.githubusercontent.com/4cff7ee13e9509841b06fc6abb36e93f4c85e411be88f0b6403bbdb876a508fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765746f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d6f656d6265642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/getolympus/olympus-dionysos-field-oembed)[![MIT](https://camo.githubusercontent.com/68035de4b7f69ada20e98e34172f47d361b83a017c8045200fc338660c467897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49545f4c6963656e73652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus/olympus-dionysos-field-oembed/blob/master/LICENSE)

> This component is a part of the **Olympus Dionysos fields** for **WordPress**.

```
composer require getolympus/olympus-dionysos-field-oembed
```

---

Table of contents
-----------------

[](#table-of-contents)

[Field initialization](#field-initialization) • [Variables definition](#variables-definition) • [Texts definition](#texts-definition) • [Retrive data](#retrive-data) • [Release history](#release-history) • [Contributing](#contributing)

---

Field initialization
--------------------

[](#field-initialization)

Use the following lines to add an `oembed field` in your **WordPress** admin pages or custom post type meta fields:

```
return \GetOlympus\Dionysos\Field\Oembed::build('my_oembed_field_id', [
    'title'       => 'Never gonna give you up!',
    'default'     => [
        'url'    => 'https://www.youtube.com/watch?v=Xxbd5keKhPU',
        'height' => 1000,
        'width'  => 916,
        'html'   => '',
    ],
    'description' => 'You\'ve been Rick rolled!',

    /**
     * Texts definition
     * @see the `Texts definition` section below
     */
    't_addblock_label'    => 'Enter URL here.',
    't_removeblock_label' => 'Clear',
]);
```

Variables definition
--------------------

[](#variables-definition)

VariableTypeDefault value if not setAccepted values`title`String`'oEmbed'`*empty*`default`Array*empty**empty*`description`String*empty**empty*Texts definition
----------------

[](#texts-definition)

CodeDefault valueDefinition`t_addblock_label`Enter URL hereUsed as an URL input placeholder`t_removeblock_label`ClearUsed as a Clear button area titleRetrive data
------------

[](#retrive-data)

Retrieve your value from Database with a simple `get_option('my_oembed_field_id', [])` (see [WordPress reference](https://developer.wordpress.org/reference/functions/get_option/)).
Below, a `json_encode()` example to understand how data are stored in Database:

```
{
  "url": "https://www.youtube.com/watch?v=Xxbd5keKhPU",
  "height": 1000,
  "width": 916,
  "html": ""
}
```

And below, a simple example to show how to iterate on the data array in `PHP`:

```
// Get embed from Database
$embed = get_option('my_oembed_field_id', []);

// Check if embed is empty and display it
if (!empty($embed)) {
    echo stripcslashes($embed['html']);
}
```

Release history
---------------

[](#release-history)

VersionNote0.0.5Fix jQuery integration on domReady0.0.4Fix JS ready0.0.3Better CSS displayContributing
------------

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

---

**Built with ♥ by [Achraf Chouk](https://github.com/crewstyle "Achraf Chouk") ~ (c) since a long time.**

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~454 days

Total

4

Last Release

877d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpframeworkwordpressfieldcustomoembedolympusdionysos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getolympus-olympus-dionysos-field-oembed/health.svg)

```
[![Health](https://phpackages.com/badges/getolympus-olympus-dionysos-field-oembed/health.svg)](https://phpackages.com/packages/getolympus-olympus-dionysos-field-oembed)
```

PHPackages © 2026

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