PHPackages                             spark-green/youtube-shortcodes - 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. spark-green/youtube-shortcodes

ActiveSilverstripe-module

spark-green/youtube-shortcodes
==============================

ShortCodes Module is based on Daniel Hensby's post at SSbits. It adds a shortcode for inserting YouTube videos to pages, as well as adding a buttons to the TinyMCE WYSIWYG editor.

0221PHP

Since Mar 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/spark-green/youtube-shortcodes)[ Packagist](https://packagist.org/packages/spark-green/youtube-shortcodes)[ RSS](/packages/spark-green-youtube-shortcodes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ShortCodes Module
=================

[](#shortcodes-module)

Overview
--------

[](#overview)

ShortCodes Module is based on Daniel Hensby's post at [SSbits](http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/). It adds a shortcodes for inserting YouTube and Vimeo videos to pages, as well as adding a buttons to the TinyMCE WYSIWYG editor.

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

[](#requirements)

SilverStripe 3.1 or newer

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

[](#installation-instructions)

### Composer

[](#composer)

Run the following to add this module as a requirement and install it via composer.

```
$ composer require spark-green/youtube-shortcodes

```

### Manual

[](#manual)

Copy the 'shortcodes' folder to your the root of your SilverStripe installation.

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

[](#usage-overview)

Use the following shortcode in any `HTMLTextField` to embed a YouTube video

```
[youtube id=4af1bFh3duo][/youtube]

```

You can also specify a height and width which can be used by the templates that render the videos

```
[youtube id=4af1bFh3duo width=300 height=150][/youtube]

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/31fbc3b00747be4b6bc54f1a97f1817ae3605681ef8b51eb33e2d7f105e1fe56?d=identicon)[sparkgreen](/maintainers/sparkgreen)

---

Top Contributors

[![spark-green](https://avatars.githubusercontent.com/u/2790964?v=4)](https://github.com/spark-green "spark-green (1 commits)")

### Embed Badge

![Health badge](/badges/spark-green-youtube-shortcodes/health.svg)

```
[![Health](https://phpackages.com/badges/spark-green-youtube-shortcodes/health.svg)](https://phpackages.com/packages/spark-green-youtube-shortcodes)
```

PHPackages © 2026

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