2017 © Pedro Peláez
 

library config

A simple configuration class.

image

jjok/config

A simple configuration class.

  • Wednesday, November 13, 2013
  • by jjok
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,140 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 19 % Grown

The README.md

Config

Build Status, (*1)

A simple configuration class., (*2)

Examples

$config = new \jjok\Config\Config();

# Set a value
$config->set('some_setting', 'Some Value');

try {
    # Get a value that has been set
    echo $config->get('some_setting');

    # Trying to get a value that hasn't been set throws an exception
    echo $config->get('fdg');
}
catch(\Exception $e) {
    echo $e->getMessage();
}

Get configuration instance in one line:, (*3)

return new \jjok\Config\Config(array(
    'some_setting' => 'Some Value',
    'some_other_setting' => 'Some Other Value'
));

Run tests

phpunit

Copyright (c) 2013 Jonathan Jefferies, (*4)

The Versions

13/11 2013

dev-master

9999999-dev https://github.com/jjok/Config

A simple configuration class.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

25/09 2013

2.0.1

2.0.1.0 https://github.com/jjok/Config

A simple configuration class.

  Sources   Download

MIT

The Requires

  • php >=5.3.0