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 heavily 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
We ship loaders for the following file formats:
- .json via PHP json extension
- .neon via Nette Neon library
- .php
- .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.