The Settings Component.
<?php
use miBadger\Settings\Settings;
/**
* Construct a settings object.
*/
$settings = new Settings();
/**
* Load the settings file from the given location.
*/
$settings->load($path);
/**
* Returns the value to which the specified key is mapped, or null if the settings map contains no mapping for the key.
*/
$settings->get('name'); // John Doe
/**
* Associates the specified value with the specified key in the settings map.
*/
$settings->set('Jane Doe');
/**
* Save the settings file at the given location.
*/
$settings->save($path);