2017 © Pedro Peláez
 

library config

PHP application configuration library

image

gaw508/config

PHP application configuration library

  • Friday, November 25, 2016
  • by gaw508
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Config - PHP Application Config Library

Build Status, (*1)

A library to manage config key value pairs for PHP applications. Configuration can be loaded from YAML files., (*2)

Installation

The latest version can be installed with composer:, (*3)

composer require gaw508/config

Basic Usage

<?php

require_once 'path/to/vendor/autoload.php';

use Gaw508\Config;

// Load a single YAML config file
Config::loadYaml('config/defaults.yml');

// Load a directory of YAML config files
Config::loadDirectory('config/autoload');

// Use a config value from YAML file
echo Config::get('some_val_from_loaded_file');
// Output: `foo bar`

// Set a single config value
Config::set('my_val', 12);

The Versions

25/11 2016
25/11 2016
24/11 2016