PHPackages                             dynamic/silverstripe-elemental-embedded-code - 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. dynamic/silverstripe-elemental-embedded-code

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

dynamic/silverstripe-elemental-embedded-code
============================================

Embed code like iFrames or Javascript on a page.

4.0.1(2w ago)150.9k↑42.1%12[2 issues](https://github.com/dynamic/silverstripe-elemental-embedded-code/issues)[1 PRs](https://github.com/dynamic/silverstripe-elemental-embedded-code/pulls)2BSD-3-ClausePHPCI passing

Since May 8Pushed 2w ago5 watchersCompare

[ Source](https://github.com/dynamic/silverstripe-elemental-embedded-code)[ Packagist](https://packagist.org/packages/dynamic/silverstripe-elemental-embedded-code)[ GitHub Sponsors](https://github.com/sponsors/dynamic)[ RSS](/packages/dynamic-silverstripe-elemental-embedded-code/feed)WikiDiscussions 4 Synced yesterday

READMEChangelog (10)Dependencies (11)Versions (21)Used By (2)

Silverstripe Elemental Embedded Code
====================================

[](#silverstripe-elemental-embedded-code)

A block to embed code like iFrames or Javascript on a page

[![CI](https://github.com/dynamic/silverstripe-elemental-embedded-code/actions/workflows/ci.yml/badge.svg)](https://github.com/dynamic/silverstripe-elemental-embedded-code/actions/workflows/ci.yml) [![Sponsors](https://camo.githubusercontent.com/475eb602a82fd79c0c52637caf359d39fd4a787ed0028b31af22a60fbe6dccb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d53706f6e736f72732d6666363962343f6c6f676f3d676974687562)](https://github.com/sponsors/dynamic)

[![Latest Stable Version](https://camo.githubusercontent.com/1db91c8af4d2de0a9e67704c137a61e0cec5a41aef1044735a5b8cffe59dd543/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d656d6265646465642d636f64652f762f737461626c65)](https://packagist.org/packages/dynamic/silverstripe-elemental-embedded-code)[![Total Downloads](https://camo.githubusercontent.com/b0c0ec7abda2f1f9aba586c49fdd32faa587b78d26ba502289f49ea8ae0e4458/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d656d6265646465642d636f64652f646f776e6c6f616473)](https://packagist.org/packages/dynamic/silverstripe-elemental-embedded-code)[![Latest Unstable Version](https://camo.githubusercontent.com/25b665fa7204fe00bf36331c7357715f2a2605cdca3fb9164209c9118e7c1e2e/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d656d6265646465642d636f64652f762f756e737461626c65)](https://packagist.org/packages/dynamic/silverstripe-elemental-embedded-code)[![License](https://camo.githubusercontent.com/b5664f3506462f9c76031c9f8907e587e4a1a51818de761735cc3fd147e7db8d/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d69632f73696c7665727374726970652d656c656d656e74616c2d656d6265646465642d636f64652f6c6963656e7365)](https://packagist.org/packages/dynamic/silverstripe-elemental-embedded-code)

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

[](#requirements)

- silverstripe/recipe-cms: ^6
- dnadesign/silverstripe-elemental: ^6

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

[](#installation)

`composer require dynamic/silverstripe-elemental-embedded-code`

License
-------

[](#license)

See [License](LICENSE.md)

Example usage
-------------

[](#example-usage)

Adds a block to display embeddable code on a page. Useful for iFrames or Javascript embeds, like MailChimp sign up forms.

Screen Shots
------------

[](#screen-shots)

#### Front End sample of an Embed Code Element

[](#front-end-sample-of-an-embed-code-element)

[![Front End sample of an Embed Code Element](./readme-images/embed-block-sample.jpg)](./readme-images/embed-block-sample.jpg)

#### CMS - Embed Code Element Main Tab

[](#cms---embed-code-element-main-tab)

[![CMS - Embed Code Element Main Tab](./readme-images/embed-block-cms.jpg)](./readme-images/embed-block-cms.jpg)

Getting more elements
---------------------

[](#getting-more-elements)

See [Elemental modules by Dynamic](https://github.com/orgs/dynamic/repositories?q=elemental&type=all&language=&sort=)

Configuration
-------------

[](#configuration)

To hide the `Content` field (leaving only the embed code field), set `hide_content_field`:

```
---
After:
  - '#silverstripeelemental-embedded-codeconfig'
---
Dynamic\Elements\Embedded\Elements\ElementEmbeddedCode:
  hide_content_field: true
```

See [SilverStripe Elemental Configuration](https://github.com/silverstripe/silverstripe-elemental#configuration)

Translations
------------

[](#translations)

The translations for this project are managed via [Transifex](https://www.transifex.com/dynamicagency/silverstripe-elemental-baseobject/)and are updated automatically during the release process. To contribute, please head to the link above and get translating!

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

[](#maintainers)

- [Dynamic](https://www.dynamicagency.com) ()

Bugtracker
----------

[](#bugtracker)

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique.

If the issue does look like a new bug:

- Create a new issue
- Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
- Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution
----------------------------

[](#development-and-contribution)

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance76

Regular maintenance activity

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% 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 ~175 days

Recently: every ~52 days

Total

18

Last Release

3d ago

Major Versions

1.0.x-dev → 2.0.02019-01-18

2.1.x-dev → 3.0.02023-08-26

3.x-dev → 4.0.02026-05-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/867942?v=4)[Dynamic](/maintainers/dynamic)[@dynamic](https://github.com/dynamic)

---

Top Contributors

[![jsirish](https://avatars.githubusercontent.com/u/1163643?v=4)](https://github.com/jsirish "jsirish (23 commits)")[![muskie9](https://avatars.githubusercontent.com/u/870751?v=4)](https://github.com/muskie9 "muskie9 (4 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![korthjp17](https://avatars.githubusercontent.com/u/3858661?v=4)](https://github.com/korthjp17 "korthjp17 (1 commits)")

---

Tags

hacktoberfestsilverstripesilverstripe-elementaljavascriptsilverstripecontentblockselementaliframeembedded

### Embed Badge

![Health badge](/badges/dynamic-silverstripe-elemental-embedded-code/health.svg)

```
[![Health](https://phpackages.com/badges/dynamic-silverstripe-elemental-embedded-code/health.svg)](https://phpackages.com/packages/dynamic-silverstripe-elemental-embedded-code)
```

PHPackages © 2026

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