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

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

saschaschieferdecker/youtube-gdprembed
======================================

Creates a new content type that embeds youtube videos after click. Preferences can be saved in cookie. No dependency to JS frameworks.

2.0.1(3y ago)39961GPL-2.0+PHP

Since Aug 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/sascha-schieferdecker/youtube_gdprembed)[ Packagist](https://packagist.org/packages/saschaschieferdecker/youtube-gdprembed)[ Docs](https://github.com/sascha-schieferdecker/youtube_gdprembed/)[ RSS](/packages/saschaschieferdecker-youtube-gdprembed/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

youtube\_gdprembed
==================

[](#youtube_gdprembed)

Extension for responsive embedding of youtube videos via javascript to comply with GDPR rules.

The existing extensions are either not available for TYPO3 v11 or do not fit my usecase.

Features
--------

[](#features)

- Provides a new content type
- Preferences can be stored in cookie.
- Option to disable showing related videos via Youtube javascript API.
- Extension tries to fetch preview images from youtube on the server via the oembed API to display them without loading them in the users browser.
- Custom CSS and JS easy to implement
- No dependency on jQuery or other frameworks
- Dataprocessor can be replaced by custom processor if needed
- Supports Chrome, Firefox, IE11 and main mobile browsers

Screenshots
-----------

[](#screenshots)

[![Overlay](Documentation/Images/overlay.png "Overlay text")](Documentation/Images/overlay.png)

[![Difference related videos](Documentation/Images/hide_related.png "Difference related videos")](Documentation/Images/hide_related.png)

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

[](#installation)

`composer require saschaschieferdecker/youtube_gdprembed`

or via [TER](https://extensions.typo3.org)

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

[](#configuration)

- Include the Typoscript-Setup in your template
- Edit the settings via constant editor or customize the setup directly:

```
plugin.tx_youtubegdprembed {
    settings {
        # ID of page with privacy information
        privacyPage = {$plugin.tx_youtubegdprembed.settings.privacyPage}

        # Set a cookie that user has accepted information about youtube
        persistAcceptance = {$plugin.tx_youtubegdprembed.settings.persistAcceptance}

        # Storage and folder for storing the downloaded preview images
        storagePreviewImages = {$plugin.tx_youtubegdprembed.settings.storagePreviewImages}
    }
}

# Define Output template
tt_content {
    youtubegdprembed_youtube =< lib.contentElement
    youtubegdprembed_youtube {
        templateName = Youtube.html
        templateRootPaths {
            198 = {$plugin.tx_youtubegdprembed.settings.templateRootPath}
        }
        dataProcessing {
            1 = SaschaSchieferdecker\YoutubeGdprembed\DataProcessing\YoutubeProcessor
        }
    }
}

page.includeCSSLibs {
    youtubegdprembed = {$plugin.tx_youtubegdprembed.settings.cssFile}
}
page.includeJSFooterlibs {
    youtubegdprembed = {$plugin.tx_youtubegdprembed.settings.jsFile}
}

```

Notes
-----

[](#notes)

Until October 2018 you could hide related videos by setting a "rel=0" paramater while embedding.

This does no longer work as before. Related videos from your own channel are still shown.

So this extension makes use of the rather hacky workaround described by [Maximilian Laumeister](https://www.maxlaumeister.com/blog/hide-related-videos-in-youtube-embeds/) to hide these related videos by creating some CSS overlays, if the corresponding option is set. Did I mention IE11 sucks?

Known problems and limitations
------------------------------

[](#known-problems-and-limitations)

IE11 does not show the overlay icons when hiding related videos, but the usual youtube controls are still accessible.

Contributions
-------------

[](#contributions)

Contributions are very welcome, feel free to create a pull request.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance50

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% 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 ~479 days

Recently: every ~599 days

Total

6

Last Release

152d ago

Major Versions

0.9.0 → 1.0.02019-08-27

1.0.1 → 2.0.02023-05-04

2.0.1 → 13.4.x-dev2026-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/22f2d399fae2f2a188cca72d28d2d149d3152a7cc872cce4281e7864a1cd31cf?d=identicon)[SaschaSchieferdecker](/maintainers/SaschaSchieferdecker)

---

Top Contributors

[![sascha-schieferdecker](https://avatars.githubusercontent.com/u/8793359?v=4)](https://github.com/sascha-schieferdecker "sascha-schieferdecker (46 commits)")[![superyaro](https://avatars.githubusercontent.com/u/690700?v=4)](https://github.com/superyaro "superyaro (3 commits)")

---

Tags

extensiontypo3youtube\_gdprembed

### Embed Badge

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

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k70](/packages/friendsoftypo3-content-blocks)[typo3/cms-styleguide

TYPO3 extension to showcase TYPO3 Backend capabilities

105768.9k39](/packages/typo3-cms-styleguide)[friendsoftypo3/visual-editor

TYPO3 CMS Visual Editor - Brings a modern WYSIWYG editing experience to TYPO3 CMS.

6010.0k3](/packages/friendsoftypo3-visual-editor)[typo3/cms-form

TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend editor interface.

147.8M288](/packages/typo3-cms-form)[t3sbs/t3sbootstrap

Startup extension to use bootstrap 5 classes, components and more out of the box. Example and info: \[www.t3sbootstrap.de\](https://www.t3sbootstrap.de)

2416.7k1](/packages/t3sbs-t3sbootstrap)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

15100.9k](/packages/eliashaeussler-typo3-form-consent)

PHPackages © 2026

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