PHPackages                             tdoescher/googlemaps-bundle - 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. tdoescher/googlemaps-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

tdoescher/googlemaps-bundle
===========================

Content Element für Google Maps Embed API oder HTML-Code

3.1.0(10mo ago)24.9k↑266.7%[1 issues](https://github.com/tdoescher/contao-googlemaps-bundle/issues)LGPL-3.0-or-laterPHPPHP &gt;=8.0

Since Oct 12Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tdoescher/contao-googlemaps-bundle)[ Packagist](https://packagist.org/packages/tdoescher/googlemaps-bundle)[ RSS](/packages/tdoescher-googlemaps-bundle/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (17)Used By (0)

Googlemaps Bundle for Contao
============================

[](#googlemaps-bundle-for-contao)

Contao 5 Bundle zur Einbindung von Google Maps als Content-Element. Es stehen zwei Element-Typen zur Verfügung:

- **Google Maps Embed** – Einbindung per iFrame via Google Maps Embed API (API-Key erforderlich)
- **Google Maps HTML** – Ausgabe von benutzerdefiniertem HTML-Code der Google Maps JavaScript API

Content-Elemente
----------------

[](#content-elemente)

### Google Maps Embed (`googlemaps_embed`)

[](#google-maps-embed-googlemaps_embed)

Bettet eine Google Maps Karte per iFrame ein. Die Karte wird über die [Google Maps Embed API](https://developers.google.com/maps/documentation/embed/get-started) geladen.

**Felder:**

FeldBeschreibungPflichtfeld`googlemaps_title`Titel des iFrame (Barrierefreiheit)Nein`googlemaps_apikey`Google Maps API-KeyJa`googlemaps_zoom`Zoom-Stufe (Standard: 16)Ja`googlemaps_address`Adresse oder OrtsbezeichnungJaIm Backend wird die eingetragene Adresse als Vorschau angezeigt.

### Google Maps HTML (`googlemaps_html`)

[](#google-maps-html-googlemaps_html)

Gibt benutzerdefiniertes HTML aus, das z. B. über die Google Maps JavaScript API erzeugt wurde. Der Code wird direkt aus dem Feld `unfilteredHtml` ausgegeben.

Im Backend wird ein statischer Platzhaltertext angezeigt.

CSP-Konfiguration
-----------------

[](#csp-konfiguration)

Die Templates setzen automatisch die erforderlichen Content Security Policy Header:

**Embed-Element:**

- `frame-src https://www.google.com`

**HTML-Element:**

- `connect-src https://*.google.com`, `https://*.googleapis.com`, `https://*.gstatic.com`
- `font-src https://fonts.gstatic.com`
- `img-src https://*.google.com`, `https://*.googleapis.com`, `https://*.googleusercontent.com`, `https://*.gstatic.com`
- `script-src https://*.google.com`, `https://*.googleapis.com`
- `style-src 'unsafe-inline' https://fonts.googleapis.com`

Template-Anpassung
------------------

[](#template-anpassung)

Die Twig-Templates befinden sich unter `contao/templates/content_element/` und können wie bei Contao üblich überschrieben werden:

- `googlemaps_embed.html.twig`
- `googlemaps_html.html.twig`

Beide Templates erweitern `@Contao/content_element/_base.html.twig` und verwenden responsive Container mit BEM-Klassen:

```
.content-googlemaps-embed__container
.content-googlemaps-embed__responsive

.content-googlemaps-html__container
.content-googlemaps-html__responsive

```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance57

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~94 days

Recently: every ~109 days

Total

16

Last Release

308d ago

Major Versions

1.1.0 → 2.0.12023-02-27

2.0.3 → 3.0.02024-02-28

PHP version history (2 changes)1.0.0PHP &gt;=7.4

2.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/52fba781c251d0a4d80e95afe0d960315fd889c74a109f50d73bb914e4eb1d94?d=identicon)[tdoescher](/maintainers/tdoescher)

---

Top Contributors

[![tdoescher](https://avatars.githubusercontent.com/u/3490810?v=4)](https://github.com/tdoescher "tdoescher (54 commits)")[![bytehead](https://avatars.githubusercontent.com/u/754921?v=4)](https://github.com/bytehead "bytehead (1 commits)")

### Embed Badge

![Health badge](/badges/tdoescher-googlemaps-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tdoescher-googlemaps-bundle/health.svg)](https://phpackages.com/packages/tdoescher-googlemaps-bundle)
```

###  Alternatives

[metamodels/core

MetaModels core

10156.4k67](/packages/metamodels-core)[codefog/contao-haste

haste extension for Contao Open Source CMS

46676.5k170](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18156.0k10](/packages/terminal42-contao-folderpage)[madeyourday/contao-rocksolid-frontend-helper

Frontend Editing for Contao. Stop stumbling through the backend and edit the elements you want easily and directly.

10132.3k3](/packages/madeyourday-contao-rocksolid-frontend-helper)

PHPackages © 2026

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