PHP code example of rail-mukhametshin / config-manager
1. Go to this page and download the library: Download rail-mukhametshin/config-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rail-mukhametshin / config-manager example snippets
ailMukhametshin\ConfigManager;
$configManager = new ConfigManager();
// Загрузка конфигурации из файла
$configManager->load('path/to/your/config.php');
// Получение значения конфигурации
echo $configManager->get('database.host');
// Установка нового значения конфигурации
$configManager->set('database.host', 'newhost.com');