PHP code example of oxygenzsas / composer_lib_config

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

    

oxygenzsas / composer_lib_config example snippets


// initialise le singleton de configuration
\OxygenzSAS\Config\Config::getInstance(__DIR__.'/config/config.php');

\OxygenzSAS\Config\Config::getInstance()->getSetting('db_pass');

\OxygenzSAS\Config\Config::getInstance()->get('db_pass');



return array(

    // Environnement
    "ENV"   => 'DEV', // DEV / PROD

    // BDD
    "db_user" => 'root',
    "db_pass" => 'root',
    "db_host" => 'localhost',
    "db_name" => 'mabase'

);