kcmerrill/config

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

A simple yet effective configuration class

Installs: 320

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/kcmerrill/config

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

This package is not auto-updated.

Last update: 2026-01-31 20:00:24 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