PHPackages                             pdir/geocode-cache-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. [Caching](/categories/caching)
4. /
5. pdir/geocode-cache-bundle

ActiveContao-bundle[Caching](/categories/caching)

pdir/geocode-cache-bundle
=========================

GeoCode Cache bundle for Contao 4

1.1.0(5y ago)345[1 issues](https://github.com/pdir/geocode-cache-bundle/issues)LGPL-3.0-or-laterPHPPHP ^5.6 || ^7.0CI failing

Since Oct 17Pushed 5y ago3 watchersCompare

[ Source](https://github.com/pdir/geocode-cache-bundle)[ Packagist](https://packagist.org/packages/pdir/geocode-cache-bundle)[ RSS](/packages/pdir-geocode-cache-bundle/feed)WikiDiscussions master Synced 3w ago

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

GeoCode Bundle extension for Contao 4
=====================================

[](#geocode-bundle-extension-for-contao-4)

[![Latest Stable Version](https://camo.githubusercontent.com/5b496d9909d54234f1b32e1494996a6f4a1b58405564873404707886f4c58d4f/68747470733a2f2f706f7365722e707567782e6f72672f706469722f67656f636f64652d63616368652d62756e646c652f762f737461626c65)](https://packagist.org/packages/pdir/geocode-cache-bundle)[![Total Downloads](https://camo.githubusercontent.com/3feef79572592dd29655081d0fcf0ac55a1d4cd9613e086e68993fd91d258ee4/68747470733a2f2f706f7365722e707567782e6f72672f706469722f67656f636f64652d63616368652d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/pdir/geocode-cache-bundle)[![License](https://camo.githubusercontent.com/3c23ca195414918e9b3c00cb6318c7e14b88ec3479601388ac8ce22cafb6b4bf/68747470733a2f2f706f7365722e707567782e6f72672f706469722f67656f636f64652d63616368652d62756e646c652f6c6963656e7365)](https://packagist.org/packages/pdir/geocode-cache-bundle)

About
-----

[](#about)

The extension adds a new route */api/geocode/* to Contao and determines the latitude and longitude of an address. As a service, the OpenCage geocoder is used. 2000 requests per day are free - see .
All requests are stored in a database table.

**Deutsch**

Die Erweiterung fügt eine neue Route api/geocode zu Contao hinzu und ermittelt die Latitude und Longitude Angaben einer Adresse. Als Dienst wird der OpenCage Geocoder verwendet. 2000 Anfrage pro Tag sind frei - see .
Alle Anfragen werden in einer Datenbanktabelle gespeichert.

Example
-------

[](#example)

Calling [https://example.org/api/geocode/Ringstraße+9+28309+Bremen](https://example.org/api/geocode/Ringstra%C3%9Fe+9+28309+Bremen) returns the following Json:

```
{ "lat": "53.0529439", "lng": "8.887199"}

```

Set API key and other parameters
--------------------------------

[](#set-api-key-and-other-parameters)

app/config/parameters.yml

```
parameters:
    pdir_gcb_opengage_api_key: INSERT_YOUR_OPENCAGE_API_KEY_HERE
    pdir_gcb_cache_time: 1 day (default is 1 hour if noting is set)

```

System requirements
-------------------

[](#system-requirements)

- [Contao 4.0](https://github.com/contao/contao-bundle) or higher

Installation &amp; Configuration
--------------------------------

[](#installation--configuration)

- [Dokumentation](https://docs.pdir.de/#/geocode-cache-bundle/index)

Dependencies
------------

[](#dependencies)

- [opencage/geocode](https://github.com/opencagedata/php-opencage-geocode)

License
-------

[](#license)

GNU Lesser General Public License v3.0

Tests &amp; Coding Standard Checks
----------------------------------

[](#tests--coding-standard-checks)

Run the PHP-CS-Fixer and the unit test before you release your bundle:

```
vendor/bin/php-cs-fixer fix -v
vendor/bin/phpunit
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~376 days

Total

2

Last Release

2074d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10244240?v=4)[Mathias Arzberger](/maintainers/MDevster)[@MDevster](https://github.com/MDevster)

---

Top Contributors

[![MDevster](https://avatars.githubusercontent.com/u/10244240?v=4)](https://github.com/MDevster "MDevster (15 commits)")[![seibtph](https://avatars.githubusercontent.com/u/17127525?v=4)](https://github.com/seibtph "seibtph (4 commits)")[![cmette](https://avatars.githubusercontent.com/u/13376233?v=4)](https://github.com/cmette "cmette (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pdir-geocode-cache-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pdir-geocode-cache-bundle/health.svg)](https://phpackages.com/packages/pdir-geocode-cache-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M72](/packages/contao-manager-bundle)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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