This package is a lightweight config loader with type safety as the primary corner stone.
PHP 8.2 or higher.
composer require stefna/config
Most config loaders fail to give the user a way to use it in a type safe way.
It also promises to be immutable after first read.
$config = new \Stefna\Config\FileConfig('path-to-php-config.php');
// config file is not read until it's needed
$config->getBool('boolKey');
We are always happy to receive bug/security reports and bug/security fixes
The MIT License (MIT). Please see License File for more information.