1. Go to this page and download the library: Download sergeymakinen/yii2-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/ */
sergeymakinen / yii2-config example snippets
#!/usr/bin/env php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
nfig.php', ['tier' => 'console']);
$application = new yii\console\Application($config);
$exitCode = $application->run();
exit($exitCode);
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
ile(__DIR__ . '/../../common/config/config.php', ['tier' => 'backend']);
(new yii\web\Application($config))->run();