Download the PHP package trilobit-gmbh/contao-constants-bundle without Composer

On this page you can find all versions of the php package trilobit-gmbh/contao-constants-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-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

Damit die Erweiterung den Insert-Tag als solchen erkennen kann, muss eine bestimmte Struktur benutzt werden. Diese sieht wie folgt aus:

Dies würde dann den angegebenen Wert der Konstante "Mitarbeiter" anzeigen.

Constants Bundle

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

For the extension to recognize the insert tag as such, a particular structure must be used. This could look like this:

This would then output the specified value of the constant "Employee".

Screenshots

Konstanten Übersicht / Constants overview

Einfache Konstante / Simple constant

Konstante mit einem Insert-Tag / Constant with an insert-tag

Konstante in einem Artikel / Constants in an article

Ausgabe der Konstante / Output of the constants

Installation

Install the extension via composer: trilobit-gmbh/contao-constants-bundle.

Configuration

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

Compatibility


All versions of contao-constants-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
contao/core-bundle Version ^4.9 || ^5.0
codefog/contao-haste Version ^4.0 || ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package trilobit-gmbh/contao-constants-bundle contains the following files

Loading the files please wait ....