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)37751GPL-2.0+PHP

Since Aug 27Pushed 1y 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 1mo 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

34

—

LowBetter than 77% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

59d 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

[georgringer/news

News system - Versatile news system based on Extbase &amp; Fluid and using the latest technologies provided by TYPO3 CMS.

2815.1M90](/packages/georgringer-news)[quellenform/t3x-iconpack

Provides an iconpack-registry for custom iconpacks.

1542.7k25](/packages/quellenform-t3x-iconpack)

PHPackages © 2026

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