2017 © Pedro Peláez
 

library tiny_config_php

image

gong023/tiny_config_php

  • Monday, January 12, 2015
  • by gong023
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

tiny_config_php

Build Status, (*1)

use \TinyConfig\TinyConfig;

TinyConfig::set('hello', 'world');
TinyConfig::set('foo', 'bar');

TinyConfig::get('hello');
=> 'world'

TinyConfig::get('unknownKey');
=> Throws TinyConfigEmptyException

TinyConfig::has('hello');
=> true

TinyConfig::getAll();
=> ['hello' => 'world', 'foo' => 'bar'];

TinyConfig::getKeys();
=> ['hello', 'foo'];

TinyConfig::delete('hello');
TinyConfig::getAll();
=> ['foo' => 'bar'];

TinyConfig::deleteAll();
TinyConfig::getAll();
=> [];

The Versions