PHPackages                             fromholdio/silverstripe-embedfield - 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. fromholdio/silverstripe-embedfield

ActiveSilverstripe-vendormodule[Image &amp; Media](/categories/media)

fromholdio/silverstripe-embedfield
==================================

A form field for adding oembed objects to pages or dataobjects

5.1.0(7mo ago)11.1k2BSD-3-ClausePHP

Since Nov 24Pushed 1mo agoCompare

[ Source](https://github.com/fromholdio/silverstripe-embedfield)[ Packagist](https://packagist.org/packages/fromholdio/silverstripe-embedfield)[ Docs](https://github.com/fromholdio/silverstripe-embedfield)[ RSS](/packages/fromholdio-silverstripe-embedfield/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (17)Used By (2)

SilverStripe Embed Field
========================

[](#silverstripe-embed-field)

This field is designed to let users attached an oembed object (eg a YouTube video) to a page or dataobject. It stores the oembed result information in an EmbedObject for easy access from the template (or wherever you want it).

This originally built upon the work of [SilverStripe Embed Field nathancox/embedfield](https://github.com/nathancox/silverstripe-embedfield) which had been quiet for several years.

**As of v4.1 the field has been converted to a React-driven form field, enabling use inline in Elemental blocks.**

Requirements
------------

[](#requirements)

- SilverStripe 5.0+

Installation Instructions
-------------------------

[](#installation-instructions)

1. Install with composer `composer require fromholdio/silverstripe-embedfield`
2. Visit yoursite.com/dev/build to rebuild the database

Usage Overview
--------------

[](#usage-overview)

Make a has\_one relationship to an EmbedObject then create an EmbedField in getCMSFields:

```
namespace {

    use SilverStripe\CMS\Model\SiteTree;
    use Fromholdio\EmbedField\Model\EmbedObject;
    use Fromholdio\EmbedField\Forms\EmbedField;

    class Page extends SiteTree
    {
        private static $db = [];

        private static $has_one = [
            'MyVideo' => EmbedObject::class
        ];

        public function getCMSFields() {
            $fields = parent::getCMSFields();

            $fields->addFieldToTab('Root.Main', EmbedField::create('MyVideoID', 'Sidebar video'));

            return $fields;
        }
    }
}
```

In the page template the video can now be embedded with `$MyVideo`.

### Form field screenshots

[](#form-field-screenshots)

- User inputs URL, and can click Preview to retrieve embed meta information (or learn the URL is invalid)
- On save, if valid, embed data is retrieved and saved into an `EmbedObject`, attached to the has\_one populating the field
- On load, if EmbedObject exists, the embed meta preview is automatically displayed

#### Inline Elemental

[](#inline-elemental)

[![Inline Elemental](./docs/sshot-elemental.png)](./docs/sshot-elemental.png)

#### Regular Page CMS fields

[](#regular-page-cms-fields)

[![Regular CMS fields](./docs/sshot-page.png)](./docs/sshot-page.png)

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance78

Regular maintenance activity

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~125 days

Total

14

Last Release

219d ago

Major Versions

1.0.1 → 2.0.02019-02-04

2.x-dev → 3.0.02023-08-26

3.x-dev → 4.0.02024-01-04

4.1.0 → 5.0.02025-10-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/40e135ad117686bee39707c1d9286cc5e915e219c26a10d13858ca44d14f1eb0?d=identicon)[dizzystuff](/maintainers/dizzystuff)

---

Top Contributors

[![dizzystuff](https://avatars.githubusercontent.com/u/576903?v=4)](https://github.com/dizzystuff "dizzystuff (20 commits)")[![DoggersHusky](https://avatars.githubusercontent.com/u/8750719?v=4)](https://github.com/DoggersHusky "DoggersHusky (18 commits)")[![nathancox](https://avatars.githubusercontent.com/u/194315?v=4)](https://github.com/nathancox "nathancox (9 commits)")[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (2 commits)")[![ChrissiQ](https://avatars.githubusercontent.com/u/1127719?v=4)](https://github.com/ChrissiQ "ChrissiQ (1 commits)")[![rsmclaren](https://avatars.githubusercontent.com/u/1579625?v=4)](https://github.com/rsmclaren "rsmclaren (1 commits)")

---

Tags

silverstripevideocmsreactformfieldoembed

### Embed Badge

![Health badge](/badges/fromholdio-silverstripe-embedfield/health.svg)

```
[![Health](https://phpackages.com/badges/fromholdio-silverstripe-embedfield/health.svg)](https://phpackages.com/packages/fromholdio-silverstripe-embedfield)
```

PHPackages © 2026

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