susina/config-builder

Load and build configuration classes

v0.4.1 2023-02-16 09:54 UTC

This package is auto-updated.

Last update: 2024-04-16 12:53:25 UTC


README

Tests Maintainability Test Coverage GitHub

Susina Configuration Builder is a library to load parameters, from configuration files, and build configuration objects or arrays. It's based on Symfony Config and Propel configuration sub-system.

Supported configuration file formats are:

  • .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

Installation

You can install the library via composer:

composer require susina/config-builder

then you should install the library you need to load your preferred configuration file format:

# Suppose you want to use yaml format
composer require symfony/yaml

Usage

See the documentation site.

Issues

Please, open an issue on Github repository.

Contributing

Fork the repository and submit a pull request. For further information see the documentation site

Licensing

This library is released under Apache 2.0 license