2017 © Pedro Peláez
 

library config

A simple yet effective configuration class

image

kcmerrill/config

A simple yet effective configuration class

  • Saturday, August 29, 2015
  • by kcmerrill
  • Repository
  • 0 Watchers
  • 1 Stars
  • 314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Config

A super simple but powerful configuration class., (*1)

Organize settings in multiple ways. External files, or via array access., (*2)

//.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, (*3)

The Versions

29/08 2015

dev-master

9999999-dev

A simple yet effective configuration class

  Sources   Download

The Requires

 

by kc merrill