PHPackages                             ethanjohnstone/silverstripe-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. [Image &amp; Media](/categories/media)
4. /
5. ethanjohnstone/silverstripe-shortcodes

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

ethanjohnstone/silverstripe-shortcodes
======================================

Adds shortcodes for inserting YouTube and Vimeo videos.

1.0.4(10y ago)014BSD-2-ClausePHPPHP &gt;=5.3.0

Since Feb 18Pushed 7y agoCompare

[ Source](https://github.com/ethanjohnstone/silverstripe-shortcodes)[ Packagist](https://packagist.org/packages/ethanjohnstone/silverstripe-shortcodes)[ Docs](https://github.com/studiobonito/silverstripe-shortcodes)[ RSS](/packages/ethanjohnstone-silverstripe-shortcodes/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

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

[](#shortcodes-module)

[![Latest Version on Packagist](https://camo.githubusercontent.com/119ebc0d52b6b4fa33e9b0a11186c61f86c9c126591a75c6a766b2dbcf81347e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73747564696f626f6e69746f2f73696c7665727374726970652d73686f7274636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-shortcodes)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/4842c83719585a2a9162f87bea08ea8a8e2f906767f52d8a1e4c394ee200cab1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73747564696f626f6e69746f2f73696c7665727374726970652d73686f7274636f6465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/studiobonito/silverstripe-shortcodes)

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 2.4 or newer.

Install
-------

[](#install)

### Via Composer

[](#via-composer)

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

```
$ composer require studiobonito/silverstripe-youtubevideos
```

### Manually

[](#manually)

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

Usage
-----

[](#usage)

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

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

```

or a Vimeo video

```
[vimeo id=29471008][/vimeo]

```

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]

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tom Densham](https://github.com/nedmas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD-2-Clause License. Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~167 days

Total

5

Last Release

3800d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23485998?v=4)[Ethan Johnstone](/maintainers/ethanjohnstone)[@ethanjohnstone](https://github.com/ethanjohnstone)

---

Top Contributors

[![ethanjohnstone](https://avatars.githubusercontent.com/u/23485998?v=4)](https://github.com/ethanjohnstone "ethanjohnstone (4 commits)")

---

Tags

silverstripevideoyoutubecmsshortcodeswysiwygtinymcevimeoshortcodestudiobonitosilverstripe-shortcodes

### Embed Badge

![Health badge](/badges/ethanjohnstone-silverstripe-shortcodes/health.svg)

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

PHPackages © 2026

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