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
Requires
- php: >=5.3.0
Requires (Dev)
- fabpot/php-cs-fixer: 1.*
- mockery/mockery: 0.9.*
- peridot-php/leo: 1.2.0
- peridot-php/peridot: 1.9.0
- peridot-php/peridot-code-coverage-reporters: 1.0.2
- peridot-php/peridot-prophecy-plugin: ~1.0
This package is auto-updated.
Last update: 2024-11-27 20:09:18 UTC
README
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(); => [];