PHPackages                             trilobit-gmbh/contao-constants-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. trilobit-gmbh/contao-constants-bundle

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

trilobit-gmbh/contao-constants-bundle
=====================================

Contao 4 / Contao 5 constants bundle

3.0.0(5mo ago)319.6k↑210.7%11LGPL-3.0-or-laterPHPPHP ^8.0

Since Oct 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/trilobit-gmbh/contao-constants-bundle)[ Packagist](https://packagist.org/packages/trilobit-gmbh/contao-constants-bundle)[ RSS](/packages/trilobit-gmbh-contao-constants-bundle/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (9)Versions (14)Used By (1)

Constants Bundle
================

[](#constants-bundle)

Das Constants Bundle fügt dem Backend von Contao den Punkt Konstanten hinzu, wo Sie mit einer Bezeichnung und einem dazugehörenden Wert eine oder mehrere Konstanten festlegen können. Diese können dann wiederum durch einen Insert-Tag überall in ihrer Contao Installation eingefügt werden. Das hat den Vorteil das Sie bestimmte Werte an mehreren Stellen einfügen können, sie aber nicht mehr alle einzeln ändern müssen, sondern dies nun über den Punkt Konstanten machen könne. Zusätzlich ist es möglich Konstanten mit einem weiteren Insert-Tag statt eines Wertes anzulegen, wodurch das Einbinden von Bildern oder einzelnen Artikeln ermöglicht wird.

Aufbau
------

[](#aufbau)

Damit die Erweiterung den Insert-Tag als solchen erkennen kann, muss eine bestimmte Struktur benutzt werden. Diese sieht wie folgt aus: `{{const::Mitarbeiter}}`Dies würde dann den angegebenen Wert der Konstante "Mitarbeiter" anzeigen.

Constants Bundle
================

[](#constants-bundle-1)

The Constants Bundle adds Constants to the backend of Contao, where you can specify one or more constants with a label and its associated value. These can then be inserted through an insert tag throughout your Contao installation. This has the advantage that you can insert certain values in several places, but you no longer have to change them all individually. In addition, it is possible to create constants with another insert tag instead of a value, which allows the inclusion of images or individual articles.

Structure
---------

[](#structure)

For the extension to recognize the insert tag as such, a particular structure must be used. This could look like this: `{{const::Employee}}`This would then output the specified value of the constant "Employee".

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

[](#screenshots)

[![](docs/images/constants_backend.png)](docs/images/constants_backend.png)Konstanten Übersicht / Constants overview

[![](docs/images/mitarbeiter.png)](docs/images/mitarbeiter.png)Einfache Konstante / Simple constant

[![](docs/images/article2.png)](docs/images/article2.png)Konstante mit einem Insert-Tag / Constant with an insert-tag

[![](docs/images/constants_eingabe.png)](docs/images/constants_eingabe.png)Konstante in einem Artikel / Constants in an article

[![](docs/images/constants_ausgabe.png)](docs/images/constants_ausgabe.png)Ausgabe der Konstante / Output of the constants

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

[](#installation)

Install the extension via composer: [trilobit-gmbh/contao-constants-bundle](https://packagist.org/packages/trilobit-gmbh/contao-constants-bundle).

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

[](#configuration)

You can define the following configuration parameters via your `config.yml` file:

```
trilobit_constants:
  allow_html: true # default: false; allow the unescaped storage of your html-based constants
```

Compatibility
-------------

[](#compatibility)

- Contao version ~4.13
- Contao version ~5.3
- Contao version ~5.7

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance70

Regular maintenance activity

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 90.3% 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 ~225 days

Recently: every ~287 days

Total

13

Last Release

170d ago

Major Versions

1.3.0 → 2.0.02023-01-09

2.0.3 → 3.0.02026-03-02

PHP version history (5 changes)v1.0.0PHP ^7.0

1.1.0PHP ^7.3

1.2.0PHP ^7.3||^8.0

2.0.0PHP ^7.3 || ^8.0

3.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7868402?v=4)[trilobit-gmbh](/maintainers/trilobit-gmbh)[@trilobit-gmbh](https://github.com/trilobit-gmbh)

---

Top Contributors

[![trilobit-gmbh](https://avatars.githubusercontent.com/u/7868402?v=4)](https://github.com/trilobit-gmbh "trilobit-gmbh (28 commits)")[![Defcon0](https://avatars.githubusercontent.com/u/1485098?v=4)](https://github.com/Defcon0 "Defcon0 (2 commits)")[![joehi](https://avatars.githubusercontent.com/u/6765340?v=4)](https://github.com/joehi "joehi (1 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/trilobit-gmbh-contao-constants-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/trilobit-gmbh-contao-constants-bundle/health.svg)](https://phpackages.com/packages/trilobit-gmbh-contao-constants-bundle)
```

###  Alternatives

[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

125.3k1](/packages/markocupic-calendar-event-booking-bundle)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

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

Node bundle for Contao Open Source CMS

3078.1k6](/packages/terminal42-contao-node)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

80419.8k112](/packages/terminal42-notification-center)[terminal42/contao-mp_forms

An extension for Contao Open Source CMS to create multi steps forms using the form generator

2535.6k7](/packages/terminal42-contao-mp-forms)[codefog/tags-bundle

Tags bundle for Contao Open Source CMS

13100.3k13](/packages/codefog-tags-bundle)

PHPackages © 2026

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