Config provides a basic API for providing configuration from files (PHP, JSON, YAML) for Drupal 7.
Config is unlikely to get a release for 8.x.
Usage
<?php
// Load the Config class.
$config = \Drupal\config\Config::load();
// Supports JSON, PHP, and optionally YAML. Want XML? Its extensible.
$parser_type = CONFIG_PARSER_JSON;
// Get the Config.
return $config->getConfig('my_module_name', 'directory_within_module', 'file_within_directory.ext', $parser_type);
?>
Short name
config