Susina Config Builder

Getting Started

Install the library via composer:

composer require susina/config-builder

and you're ready to go!

Additionally, you should install the library you could need to load your configuration file format. In example, if you have to load some yaml files:

composer require symfony/yaml

List of supported file formats and libraries to load

Susina Configuration Builder doesn't pre-install the libraries needed to load your configuration files, to avoid adding unnecessary dependencies to your project. Choosing one or more of these libraries is your responsibility and it depends on which configuration format you prefer.

Here are the supported file formats and the libraries to load:

Format Supported file extension Library to load Installation
json .json, .json.dist Bundled with PHP Enabled by default
neon .neon, .neon.dist Nette Neon composer require nette/neon
php .php, .php.dist PHP itself none
toml .toml, .toml.dist PHP Toml composer require php-collective/toml
xml .xml, .xml.dist Susina Xml To Array Automatically installed by composer
yaml .yaml, .yaml.dist, .yml, .yml.dist Symfony Yaml composer require symfony/yaml

Search results