Skip to content

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:

  1. load the parameters from some configuration files
  2. process the loaded parameters to normalize and validate them
  3. return an array of cleaned parameters or a configuration object

We ship loaders for the following file formats:

  • .ini
  • .json via PHP json extension
  • .neon via Nette Neon library
  • .php
  • .xml via PHP SimpleXml, Xml and Dom extensions
  • .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.