PHP code example of formigone / php-config
1. Go to this page and download the library: Download formigone/php-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/ */
formigone / php-config example snippets
$env = getenv('APP_ENV');
$configPath = __DIR__ . '/config';
$config = new Formigone\Config($env, $configPath);
$appVersion = $config->get('appVersion');
$db = $config->get('db');
$shouldCacheViews = $config->get('app.views.cache');