Susina Configuration Builder
Susina Configuration Builder is a library to load and build configuration objects or arrays. It's based on Symfony Config and it's inspired on Propel configuration sub-system.
Building a configuration is a three-step process:
- load the parameters from some configuration files
- process the loaded parameters to normalize and validate them
- return an array of cleaned parameters or a configuration object
Note
The configuration builder returns an instance of Dflydev\DotAccessData\Data by default.
Please, see https://github.com/dflydev/dflydev-dot-access-data repository for further information.
We ship loaders for the following file formats:
- .json via PHP json extension
- .neon via Nette Neon library
- .php
- .toml via PHP Toml
- .xml via Susina xml to array library
- .yml via Symfony Yaml component
The Configuration Builder can populate any object whose constructor, or any other initialize method, takes an array as a parameter.