$config = CRM_Core_Config::singleton(); $apiKey = $config->userFrameworkConfig['apiKey']; $config->userFrameworkConfig['debug'] = true; $config->saveConfig();
$config = CRM_Core_Config::singleton(); if ($config->isDebugEnabled()) { // do something in debug mode }
$config = CRM_Core_Config::singleton(); $baseUrl = $config->getURL();From these examples, it is clear that CRM_Core_Config is part of the CiviCRM package library.