kerasai / robo-config
There is no license information available for the latest version (1.0.5) of this package.
Configuration handling for Robo PHP task runner.
1.0.5
2025-01-06 13:07 UTC
Requires
- consolidation/robo: ~3 || ~4 || ~5
Requires (Dev)
- drupal/coder: ^8.3
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2026-03-06 15:47:33 UTC
README
Robo Configuration Utility
Installation
composer require kerasai/robo-config
Usage
From within your Robofile.php or other Robo-aware code:
<?php
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->requireConfigVal('my.config.value');
}