dev-master
9999999-dev https://github.com/jjok/ConfigA simple configuration class.
MIT
The Requires
- php >=5.3.0
2.0.1
2.0.1.0 https://github.com/jjok/ConfigA simple configuration class.
MIT
The Requires
- php >=5.3.0
Wallogit.com
2017 © Pedro Peláez
A simple configuration class.
A simple configuration class., (*2)
$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'
));
phpunit
Copyright (c) 2013 Jonathan Jefferies, (*4)
A simple configuration class.
MIT
A simple configuration class.
MIT