ifcastle/configurator-toml

Configurator component for TOML syntax.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:ifcastle-component

v0.7.0 2024-11-24 07:46 UTC

This package is auto-updated.

Last update: 2025-02-24 08:23:14 UTC


README

Configurator for the IfCastle framework in TOML format.

Installation

This package must be installed within the IfCastle application environment, i.e., in ifcastle/package-installer, if you want the dependencies to be correctly defined.

composer require ifcastle/configuator-toml

Usage

The package defines two toml files:

  • the main application configuration file: main.toml
  • the service registry: services.toml

All files must be located in the root directory of the project.

Syntax

Automatic replacement for ENV variables will also work, i.e., syntax with "%":

[database]
host = "%DB_HOST%"
port = "%DB_PORT%"
user = "%DB_USER%"
password = "%DB_PASSWORD%"

See also the toml.