PHPackages                             richardsjoqvist/silverstripe-embedder - 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. richardsjoqvist/silverstripe-embedder

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

richardsjoqvist/silverstripe-embedder
=====================================

Embedder enables embedding media in content fields area similar to how embeds work in WordPress

1.1.1(11y ago)102.6k5PHPPHP &gt;=5.3.2

Since May 3Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Embedder SilverStripe module
----------------------------

[](#embedder-silverstripe-module)

Embedder enables embedding in content fields area similar to how embeds work in WordPress, and can embed media from pasted links and HTML code.

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

[](#requirements)

- SilverStripe 4

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

[](#installation)

Drop the module into your SilverStripe project and run /dev/build

Usage
-----

[](#usage)

The idea is to convert URLS for media ( Youtube, Vimeo) in the markup into embbedded media. For example the following text

```
 Best Video ever !
https://www.youtube.com/watch?v=9bZkp7q19f0

```

would be converted into

```
 Best Video ever !

```

### Enable Embedder on content fields

[](#enable-embedder-on-content-fields)

Embedder must be activated in your project \_config.php. This is done by registering which fields on which pagetypes Embedder should work. The following example would enable Embedder on the "Content" field on pages of the "Page" type:

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
  fields:
    Page:
      - Content

```

The following example would enable Embedder on the "Intro" field on all page types:

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
  fields:
    all
      - Intro;

```

### Specify embedded media size

[](#specify-embedded-media-size)

Add the following to set the width of media embedded from links:

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
  width: 750
  maxWidth: 750

```

The following methods are included to control embed size:

- setWidth(\[int\])
- setHeight(\[int\])
- setMaxWidth(\[int\])
- setMaxHeight(\[int\])

Sizes will be calculated with aspect ratio maintained.

### Register media providers

[](#register-media-providers)

Several pre-packaged providers (content sites) are included. They must be separately registered as such:

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
  providers:
    - \RichardsJoqvist\silverstripeEmbedder\Youtube
    - \RichardsJoqvist\silverstripeEmbedder\Vimeo
    - \RichardsJoqvist\silverstripeEmbedder\Instagram

```

The following providers are included:

- Flickr
- Instagram
- Viddler
- Vimeo
- Youtube

You can easily add more custom providers that conform to the oEmbed specification. Simply copy one of the included provider classes to your project directory and modify it to suit your needs, then run /dev/build to register the provider class with SilverStripe and enable it in your \_config.php. See the [oEmbed website](http://oembed.com/)for more information.

### Register HTML tags

[](#register-html-tags)

Embedder can also render pasted HTML code based on tag names:

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
  tags:
    - object
    - iframe
    - embed

```

This registers &lt;object&gt;, &lt;iframe&gt; and &lt;embed&gt;-tags to be rendered as objects instead of HTML entities. For example, if the following code is pasted in an Embedder-enabled field it will be rendered as an iframe:

```

```

### Full config Example

[](#full-config-example)

This file would be called embedder.yml

```
RichardsJoqvist\silverstripeEmbedder\Embedder:
width: 750
maxWidth: 750
fields:
  SilverStripe\Blog\Model\BlogPost:
    - Content
  Page:
    - Content
  AnotherPageType:
    - Content
    - Another HTML Field
providers:
  - \RichardsJoqvist\silverstripeEmbedder\Youtube
  - \RichardsJoqvist\silverstripeEmbedder\Vimeo
  - \RichardsJoqvist\silverstripeEmbedder\Instagram

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~313 days

Total

3

Last Release

4224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e7b085f80139f2ffffa4cf6ce00890600d27ce2a40ebf4ca4dae7e41f56b3b5?d=identicon)[richardsjoqvist](/maintainers/richardsjoqvist)

---

Top Contributors

[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (1 commits)")[![stevie-mayhew](https://avatars.githubusercontent.com/u/1953220?v=4)](https://github.com/stevie-mayhew "stevie-mayhew (1 commits)")

---

Tags

silverstripemoduleembedder

### Embed Badge

![Health badge](/badges/richardsjoqvist-silverstripe-embedder/health.svg)

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

85155.1k3](/packages/mediawiki-maps)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

37359.9k36](/packages/lekoala-silverstripe-cms-actions)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19256.6k4](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)[lekoala/silverstripe-softdelete

Soft delete extension for SilverStripe

11246.7k](/packages/lekoala-silverstripe-softdelete)

PHPackages © 2026

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