gong023/tiny_config_php

此包的最新版本(0.1.0)没有可用的许可证信息。

0.1.0 2015-01-12 08:25 UTC

This package is auto-updated.

Last update: 2024-08-27 19:38:49 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();
=> [];