kcmerrill/config

There is no license information available for the latest version (dev-master) of this package.

A simple yet effective configuration class

dev-master 2015-08-29 05:17 UTC

This package is not auto-updated.

Last update: 2024-05-11 11:32:33 UTC


README

A super simple but powerful configuration class.

Organize settings in multiple ways. External files, or via array access.

//.config file within /config/
[db]
user_name = 'root';
password = 'password'
// ...


$app_config = new kcmerrill\utility\config(__DIR__ . '/config/');
$app_config->set('php.hello.world', 'hello_world!');
echo $app_config['db']['user_name'] . ' is my db username configuration!';
echo $app_config->c('whatever.you.set') . ' is my configuration!';
echo $app_config->c('php.hello.world') . ' is my configuration!';

Build Status