PHP code example of nixiware / config

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

    

nixiware / config example snippets

get($name, $
$name

EnvVar::get('DB_HOST', false, '127.0.0.1');

EnvVar::get('REST_API_ENABLED', true, null, EnvVar::TypeBool);

EnvVar::get('DB_PASSWORD', true);