PHPackages                             inspiredminds/contao-remember-language - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. inspiredminds/contao-remember-language

ActiveContao-bundle[Localization &amp; i18n](/categories/localization)

inspiredminds/contao-remember-language
======================================

Contao 4 extension to redirect to a language saved in a cookie.

2.0.1(3y ago)1151LGPL-3.0-or-laterPHPPHP &gt;=7.1

Since Jan 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/inspiredminds/contao-remember-language)[ Packagist](https://packagist.org/packages/inspiredminds/contao-remember-language)[ Docs](https://github.com/inspiredminds/contao-remember-language)[ GitHub Sponsors](https://github.com/sponsors/fritzmg)[ RSS](/packages/inspiredminds-contao-remember-language/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

[![](https://camo.githubusercontent.com/6537f7e4f319d55be323052b87ad023f1060d8896026d1ee3d9a71d8febf506c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e7370697265646d696e64732f636f6e74616f2d72656d656d6265722d6c616e67756167652e737667)](https://packagist.org/packages/inspiredminds/contao-remember-language)[![](https://camo.githubusercontent.com/08bfd628f3fe16ed53489368b2282c8b2cc10ddcfc9fa2187d1998976e11fd88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e7370697265646d696e64732f636f6e74616f2d72656d656d6265722d6c616e67756167652e737667)](https://packagist.org/packages/inspiredminds/contao-remember-language)

Contao Remember Language
========================

[](#contao-remember-language)

Contao 4 extension to redirect to a language saved in a cookie when using `contao.prepend_locale: true` and requesting the domain without any language parameter in the URL.

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

[](#configuration)

The extension allows you to configure the following:

- Enable or disable the redirect.
- Enable or disable saving the current language in a cookie.
- The name of the cookie.

```
# Default configuration for extension with alias: "contao_remember_language"
contao_remember_language:

    # Enables the automatic redirect to the saved language.
    enable_redirect:      true

    # Saves the current language as a cookie.
    save_language:        true

    # Name of the cookie where the language is saved.
    cookie_name:          contao_remember_language
```

Caching
-------

[](#caching)

If you use caching, make sure to *not* add the configured cookie to your `COOKIE_ALLOWLIST`. The information of the cookie is only relevant for requests to `https://example.org/` (without any path/parameter), and since Contao (at least up to Contao `4.9`) always redirects such requests (with a status code other than `301`) when using `contao.prepend_locale: true`, such requests are never cached. Thus, it is not necessary to prevent caching when the request contains the cookie.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

1438d ago

Major Versions

1.0.2 → 2.0.02020-05-16

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

2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f6ec05570f72d0fcc4d0a4fef2309799d53badf8b30484284e73724661e0d8?d=identicon)[fritzmg](/maintainers/fritzmg)

---

Top Contributors

[![fritzmg](https://avatars.githubusercontent.com/u/4970961?v=4)](https://github.com/fritzmg "fritzmg (16 commits)")

---

Tags

contaocontao-bundlelanguagecontaocookieremember

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/inspiredminds-contao-remember-language/health.svg)

```
[![Health](https://phpackages.com/badges/inspiredminds-contao-remember-language/health.svg)](https://phpackages.com/packages/inspiredminds-contao-remember-language)
```

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k257.3M12.3k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M418](/packages/easycorp-easyadmin-bundle)[contao-community-alliance/dc-general

Universal data container for Contao

1581.4k93](/packages/contao-community-alliance-dc-general)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k190.0M2.6k](/packages/symfony-security-bundle)[shopware/storefront

Storefront for Shopware

674.7M283](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M668](/packages/shopware-core)

PHPackages © 2026

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