gong023/tiny_config_php

There is no license information available for the latest version (0.1.0) of this package.

0.1.0 2015-01-12 08:25 UTC

This package is auto-updated.

Last update: 2024-10-27 20:00:25 UTC


README

Build Status

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();
=> [];