2017 © Pedro Peláez
 

library config

Steroid Config

image

steroid/config

Steroid Config

  • Friday, May 29, 2015
  • by Zacharie
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Steroid Config

Build Status Coverage Status SensioLabsInsight Latest Stable Version Monthly Downloads, (*1)

Installation:

"steroid/config": "~1.0", (*2)

Usage:

Config::setCacheDirectory($cache_directory);
$config = Config::instance()->load('config.txt');
$locale = $config->get('dev.locale');
$locale = Config::instance()->get('dev.locale');

Setting a root, usual if you defined roots in your config to separate dev and production or any other separation, all calls to the config will be prefixed with root. Root can be set in bootstrap when config is initialized., (*3)

$config = Config::instance()->setRoot('dev');
$locale = $config->get('locale');
$locale = Config::instance()->get('locale');

Config file syntax:

Documentation is still far from defined, all supported config's are listed and explained shortly in tests/files, (*4)

Changelog:

v1.1.1 - Refactored parser, (*5)

v1.1.0 - Added support for config roots - Added multiline support with filter support - More complete tests and config files with all supported syntaxes, (*6)

v1.0.1 - The instance multione also creates an instance if not already created, (*7)

v1.0.0 - Initial version, (*8)

The Versions

29/05 2015

dev-master

9999999-dev

Steroid Config

  Sources   Download

MIT

The Development Requires

by Zacharie Baptiste

29/05 2015
25/05 2015

v1.1.0

1.1.0.0

Steroid Config

  Sources   Download

MIT

The Development Requires

by Zacharie Baptiste

24/05 2015

v1.0.1

1.0.1.0

Steroid Config

  Sources   Download

MIT

The Development Requires

by Zacharie Baptiste

23/05 2015

v1.0.0

1.0.0.0

Steroid Config

  Sources   Download

MIT

The Development Requires

by Zacharie Baptiste