PHPackages                             phile/youtube - 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. phile/youtube

ActivePhile-plugin[Utility &amp; Helpers](/categories/utility)

phile/youtube
=============

A plugin that generates Youtube videos based on IDs. It can be used in your theme, or in your Markdown.

1.1.1(11y ago)3241MITPHP

Since Jun 19Pushed 11y ago2 watchersCompare

[ Source](https://github.com/PhileCMS/phileYoutube)[ Packagist](https://packagist.org/packages/phile/youtube)[ Docs](http://philecms.com)[ RSS](/packages/phile-youtube/feed)WikiDiscussions master Synced 1w ago

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

phileYoutube
============

[](#phileyoutube)

A plugin that generates Youtube videos based on IDs. It can be used in your theme, or in your Markdown.

### Features

[](#features)

- use in Markdown
- use in templates with Twig
- auto grab the title

### 1.1 Installation (composer)

[](#11-installation-composer)

```
php composer.phar require phile/youtube:*

```

### 1.2 Installation (Download)

[](#12-installation-download)

- Install [Phile](https://github.com/PhileCMS/Phile)
- Clone this repo into `plugins/phile/youtube`

### 2. Activation

[](#2-activation)

After you have installed the plugin. You need to add the following line to your `config.php` file:

- add `$config['plugins']['phile\\youtube'] = array('active' => true);` to your `config.php`

### Markdown Usage

[](#markdown-usage)

You can use this plugin in your Markdown files. It allows videos to be easy rendered without using any HTML in your Markdown.

#### Basic Examples:

[](#basic-examples)

Put the code in there. Watch the HTML spew out.

```
youtube=8GLMe371RuI
```

Make sure you left a break line before and after the code if your video is not showing up

You can add a start point in seconds too like this

```
youtube=8GLMe371RuI?start=60
```

Output:

```
All About PhileCMS
```

### Theme Usage

[](#theme-usage)

There will now be a new twig function called `youtube`. It takes a YouTube ID, and renders the HTML for the video!

#### Basic Examples:

[](#basic-examples-1)

Put the code in there. Watch the HTML spew out. *Assumes you have set `Video: 8GLMe371RuI` in your pages meta*.

```
{{ youtube(meta.video) }}
```

Output:

```
All About PhileCMS
```

#### Config

[](#config)

Here are the settings. See the above output for where everything goes.

```
'wrapper_class' => 'youtube-video', // parent class for iframe
'title_class' => 'youtube-title', // div clas for video title
'show_title' => true, // get the title
'title_tag' => 'h2', // wrap the title in this tag, can be false for none
'video_height' => 480, // standard height
'video_width' => 853 // standard width

```

**Fixed heights and widths?**

Because clients are crazy and will try to add a video at a bad size. I like to control what they are doing in the theme. I know what size will work better than they do.

### Why Use?

[](#why-use)

Clients are crazy. You want to make sure the HTML output is good and not a huge mess. Also autofetching the title is sweet.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

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 ~333 days

Total

2

Last Release

4018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e96d91f6220abcbbf2e6bcd12988b11330178e08a33cd663e813257a359b12fc?d=identicon)[NeoBlack](/maintainers/NeoBlack)

---

Top Contributors

[![Schlaefer](https://avatars.githubusercontent.com/u/143224?v=4)](https://github.com/Schlaefer "Schlaefer (5 commits)")[![james2doyle](https://avatars.githubusercontent.com/u/1425304?v=4)](https://github.com/james2doyle "james2doyle (2 commits)")[![NeoBlack](https://avatars.githubusercontent.com/u/1128085?v=4)](https://github.com/NeoBlack "NeoBlack (2 commits)")[![X3msnake](https://avatars.githubusercontent.com/u/11083514?v=4)](https://github.com/X3msnake "X3msnake (1 commits)")

---

Tags

philecms-plugincontentcmsphile

### Embed Badge

![Health badge](/badges/phile-youtube/health.svg)

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

PHPackages © 2026

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