PHPackages                             gorriecoe/silverstripe-embed - 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. gorriecoe/silverstripe-embed

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

gorriecoe/silverstripe-embed
============================

Adds embed and video a dataobject along with dataextension to apply embed to existing objects.

1.0.2(7y ago)111.2k16[4 PRs](https://github.com/gorriecoe/silverstripe-embed/pulls)1BSD-3-ClausePHP

Since Mar 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gorriecoe/silverstripe-embed)[ Packagist](https://packagist.org/packages/gorriecoe/silverstripe-embed)[ Docs](http://github.com/gorriecoe/silverstripe-embed)[ RSS](/packages/gorriecoe-silverstripe-embed/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (1)

Silverstripe embed
==================

[](#silverstripe-embed)

[![ko-fi](https://camo.githubusercontent.com/3083b1b9120d3820370812846fe8349310dbba940baa14700d89db51b80a2629/68747470733a2f2f7777772e6b6f2d66692e636f6d2f696d672f646f6e6174655f736d2e706e67)](https://ko-fi.com/E1E5HWRR)

Adds embed and video a dataobject along with dataextension to apply embed to existing objects.

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

[](#installation)

Composer is the recommended way of installing SilverStripe modules.

```
composer require gorriecoe/silverstripe-embed

```

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

[](#requirements)

- silverstripe/framework ^4.0

Maintainers
-----------

[](#maintainers)

- [Gorrie Coe](https://github.com/gorriecoe)

Usage
-----

[](#usage)

Relationship to Embed Dataobjects

```
use gorriecoe\Embed\Models\Embed;

class ClassName extends DataObject
{
    private static $has_one = [
        'Embed' => Embed::class,
        'Video' => Video::class
    ];

    public function getCMSFields()
    {
        ...
        $fields->addFieldsToTab(
            'Main',
            [
                HasOneButtonField::create(
                    'Embed',
                    'Embed',
                    $this
                ),
                HasOneButtonField::create(
                    'Video',
                    'Video',
                    $this
                )
            ]
        );
        ...
    }
}
```

Update current DataObject to be Embeddable with DataExtension

```
use gorriecoe\Embed\Extensions\Embeddable;

class ClassName extends DataObject
{
    private static $extensions = [
        Embeddable::class,
    ];

    /**
     * List the allowed included embed types.  If null all are allowed.
     * @var array
     */
    private static $allowed_embed_types = [
        'video',
        'photo'
    ];

    /**
     * Defines tab to insert the embed fields into.
     * @var string
     */
    private static $embed_tab = 'Main';
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~60 days

Total

3

Last Release

2870d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11811440?v=4)[Gorrie Coe](/maintainers/gorriecoe)[@gorriecoe](https://github.com/gorriecoe)

---

Top Contributors

[![gorriecoe](https://avatars.githubusercontent.com/u/11811440?v=4)](https://github.com/gorriecoe "gorriecoe (16 commits)")[![dawb](https://avatars.githubusercontent.com/u/777930?v=4)](https://github.com/dawb "dawb (1 commits)")

---

Tags

silverstripecmsembed

### Embed Badge

![Health badge](/badges/gorriecoe-silverstripe-embed/health.svg)

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

###  Alternatives

[sheadawson/silverstripe-linkable

A couple of handy form fields and objects for managing external and internal links on DataObjects

39316.2k24](/packages/sheadawson-silverstripe-linkable)

PHPackages © 2026

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