PHP code example of kerasai / robo-config
1. Go to this page and download the library: Download kerasai/robo-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/ */
kerasai / robo-config example snippets
class RoboFile {
use Kerasai\Robo\Config\ConfigHelperTrait
// Get a config value.
$this->getConfigVal('my.config.value', 'default_value');
// Get multiple config values.
$config = [
'my.config.value' => 'default_value',
'my.config.value2' => 'default_value2',
'my.config.value3' => 'default_value3',
];
$this->getConfigVals('my.config.value', 'default_value');
// Require a config value, throws Exception if not set.
$this->