ifcastle/configurator-toml

Configurator component for TOML syntax.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:ifcastle-component

v0.5.1 2024-11-20 07:11 UTC

This package is auto-updated.

Last update: 2024-11-20 07:25:35 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.