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
Requires
- php: ^8.3
- devium/toml: ^1.0
- ifcastle/application: ^0.7
- ifcastle/di: ^0.7
- ifcastle/os-utilities: ^0.5
- ifcastle/service-manager: ^0.6
Requires (Dev)
- ifcastle/codestyle: ^0.1.7
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.4
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.