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.

Installs: 32 994

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/kerasai/robo-config

1.0.5 2025-01-06 13:07 UTC

This package is auto-updated.

Last update: 2025-10-06 15:04:09 UTC


README

CircleCI

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');

}