susina / config-builder
Load and build configuration classes
v1.0.1
2024-11-30 13:47 UTC
Requires
- php: >=8.2
- susina/param-resolver: ^0.5.0
- susina/xml-to-array: ^1.0
- symfony/config: ^6.4|^7.1
Requires (Dev)
- mikey179/vfsstream: ^1.6
- nette/neon: ^3.4
- pestphp/pest: ^2
- psalm/phar: ^5.25
- susina/coding-standard: ^2
- symfony/yaml: ^6.4|^7.0
Suggests
- ext-dom: Allows to include XML files into your XML configuration
- ext-json: Needed to load JSON configuration files
- ext-libxml: Needed to manipulate XML configuration files
- ext-simplexml: Needed to load XML configuration files
- nette/neon: Needed to load NEON configuration files
- symfony/yaml: Needed to load YAML configuration files
README
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:
- .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