PHP code example of new-inventor / config-tool

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

    

new-inventor / config-tool example snippets


$res = Config::get(['test', 'test', 0], 123);
$res = Config::get('test', 123);
$res = Config::get(['test', 'test', 0]);
$res = Config::get('test');
$res = Config::get('test.test.test', 123);
$res = Config::get(1, 123);

$res = Config::set(['test', 'test', 0], 123);
$res = Config::set('test', 123);
$res = Config::set('test.test.test', 123);
$res = Config::set(1, 123);