2017 © Pedro Peláez
 

library config

image

openclerk/config

  • Wednesday, March 18, 2015
  • by soundasleep
  • Repository
  • 1 Watchers
  • 0 Stars
  • 317 Installations
  • PHP
  • 18 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

openclerk/config

A library for configuration management in Openclerk., (*1)

Installing

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

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

Using

Initialise configuration before use:, (*3)

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:, (*4)

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

The Versions

18/03 2015

dev-master

9999999-dev

  Sources   Download

18/03 2015

0.1.1

0.1.1.0

  Sources   Download

08/12 2014

0.1.0

0.1.0.0

  Sources   Download