2017 © Pedro Peláez
 

library speedy-config

No-fuss configuration loader, processor and cache

image

glynnforrest/speedy-config

No-fuss configuration loader, processor and cache

  • Friday, December 1, 2017
  • by glynnforrest
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Speedy Config

Build Status, (*1)

Load configuration from a variety of sources, process and validate it, then cache the result for speedy loading the next time., (*2)

Install

composer require glynnforrest/speedy-config

Usage

Create a config builder with the loaders and processors to use:, (*3)


use SpeedyConfig\ConfigBuilder; use SpeedyConfig\Loader\YamlLoader; use SpeedyConfig\Loader\PhpLoader; use SpeedyConfig\Processor\ReferenceProcessor; $builder = new ConfigBuilder([new YamlLoader(), new PhpLoader()], new ReferenceProcessor());

Add resources to load:, (*4)

$builder->addResource('config.php')
    ->addResource('config.yml');

Then get the resolved configuration., (*5)

$config = $builder->getConfig();

// instance of SpeedyConfig\Config

The Versions

01/12 2017

dev-master

9999999-dev

No-fuss configuration loader, processor and cache

  Sources   Download

MIT

The Requires

 

The Development Requires

by Glynn Forrest

22/11 2017

dev-jenkinsfile

dev-jenkinsfile

No-fuss configuration loader, processor and cache

  Sources   Download

MIT

The Requires

 

The Development Requires

by Glynn Forrest

03/04 2017

v0.1.0

0.1.0.0

No-fuss configuration loader, processor and cache

  Sources   Download

MIT

The Requires

 

The Development Requires

by Glynn Forrest