PHP code example of nuvo-code / config

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

    

nuvo-code / config example snippets


use NuvoCode\Config\Config;

$config = new Config();

$config->set('key', 'value');

$value = $config->get('key');

$value = $config->get('key', 'default');

use NuvoCode\Config\Facades\VersionManager;

$version = new VersionManager();

$version->updateVersion('major'); // It will update version to 2.0.0
$version->updateVersion('minor'); // It will update version to 1.1.0
$version->updateVersion('patch'); // It will update version to 1.0.1