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

Abandoned → [heimrichhannot/contao-youtube-bundle](/?search=heimrichhannot%2Fcontao-youtube-bundle)Contao-module[Image &amp; Media](/categories/media)

heimrichhannot/contao-youtube
=============================

Youtube Content Element, with responsive support, preview image, play button and many more.

1.5.1(6y ago)22.1k[1 issues](https://github.com/heimrichhannot/contao-youtube/issues)1LGPL-3.0+PHPPHP ~5.4 || ~7.0

Since Jan 8Pushed 6y ago7 watchersCompare

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

READMEChangelogDependencies (4)Versions (52)Used By (1)

YouTube
=======

[](#youtube)

YouTube is a contao module to provide responsive youtube videos with preview images and better privacy control. It provides support for content elements and news items.

Technical instruction
---------------------

[](#technical-instruction)

Youtube videos can be added to news templates with ease. Just add the following code (for example: news\_full.html5):

```

```

To use preview images from youtube, you have to generate an API key () and place it in the contao settings.

Features
--------

[](#features)

- Responsive youtube videos (requires jQuery)
- Preview image for youtube videos
    - If no custom image is given, the preview image will be loaded from youtube and saved under 'files/media/youtube/'
- Privacy mode (requires jQuery)
    - In privacy mode the video is displayed, after the user accepted a privacy advice within a modal prompt (requires bootstrap 3 modal window support)
    - The user can mark his selection as permanent with a checkbox (state will be saved in a cookie)

[![alt privacy modal](./docs/img/privacy_modal.jpg)](./docs/img/privacy_modal.jpg)

### Content elements

[](#content-elements)

NameDescriptionContentYoutubeThe default core youtube content element with additional features.### Fields

[](#fields)

tl\_module:

NameDescriptionyoutube\_templateSelect a youtube template within your news module.autoplayStart the video on page view, only for reader modules.tl\_page:\[root pages only\]

NameDescriptionyoutube\_templateSelect a youtube template within your root page.youtubePrivacyEnable youtube privacy mode for all elements on pages within this root page.youtubePrivacyTemplateSelect a youtube privacy template within your root page.### Hooks

[](#hooks)

NameArgumentsDescriptionparseArticles$objTemplate, $arrItem, $objModuleAdd youtube to news templates.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

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

Recently: every ~155 days

Total

51

Last Release

2393d ago

PHP version history (2 changes)1.3.8PHP ~5.6 || ^7.0

1.4.0PHP ~5.4 || ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

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

---

Tags

videoyoutubecontentcontaoresponsive

### Embed Badge

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

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

PHPackages © 2026

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