PHP code example of dynamis / framework

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

    

dynamis / framework example snippets



// Not 'DATE_FORMAT', 'M j, Y');

/* ------------------------------ */

// Autoload classes
nt
if ($stage = getenv('APP_STAGE')) {
    $framework->setEnvironment($stage);
}
else {
    if (defined('WP_DEBUG') && WP_DEBUG) {
        $framework->setEnvironment('development');
    }
    else {
        $framework->setEnvironment('production');
    }
}

// Initialize
$framework->init();

$framework->overridePath('config', 'path/to/theme/config')