PHP code example of qwant50 / config

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

    

qwant50 / config example snippets


$config = new Config('/path/to/configs');
$allConfigs = $config->getData();

$config = new Config('/path/to/configs');
$data = $config->getData($fullFileName);
var_dump($config->getBasePath());
var_dump($data);

$config->saveConfig($key);

$config->saveConfig($key, $fullFileName);