Skip to content

openclerk/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openclerk/config

A library for configuration management in Openclerk.

Installing

Include openclerk/config as a requirement in your project composer.json, and run composer update to install it into your project:

{
  "require": {
    "openclerk/config": "dev-master"
  },
  "repositories": [{
    "type": "vcs",
    "url": "https://github.com/openclerk/config"
  }]
}

Using

Initialise configuration before use:

Openclerk\Config::merge(array(
  "database_name" => "clerk",
  "database_username" => "username",
  "database_password" => "password",
  // any other values here
));

You can now load configuration values at runtime:

echo Openclerk\Config::get("my_key", "default");

About

Simple PHP configuration management

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages