CommonPHP Config provides configuration loading, encoding, decoding, validation, and access patterns for CommonPHP applications. It defines the common configuration driver contract used by format-specific packages such as JSON, PHP, INI, XML, and YAML drivers.
The package is intended to manage structured application configuration after runtime has loaded the minimal environment values needed to boot.
- PHP
^8.5 comphp/runtime:^0.3
Once this package is available through your Composer repositories, install it with:
composer require comphp/config<?php
// TODO: Write usageThis package should own real application configuration, including driver-based loading, encoding, decoding, validation, and optional schema support. Runtime only loads dotenv enough to start the application.
Read, write, parse, validation, and unsupported format failures should throw CommonPHP config exceptions such as ConfigReadException, ConfigWriteException, ConfigValidationException, or ConfigException.
MIT. See LICENSE.md.