PHP code example of theykk / config

1. Go to this page and download the library: Download theykk/config 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/ */

    

theykk / config example snippets


use TheYkk\Config;

// Tekli Dosya Yukleme
$conf = Config::load('config.php');
$conf = new Config('config.php');

// Coklu dosya yukleme
$conf = new Config(['config.php', 'config.php']);


// Key kullanarak deger alma
$db_user = $conf->get('database.user');


$conf = Config::load('config.php');

$conf->set('genel.durum','oldu');