nerd-components / config
Simple stateless configuration manager
v0.1.2
2016-10-08 20:14 UTC
Requires (Dev)
- phpunit/phpunit: ^5.5
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^2.6
This package is not auto-updated.
Last update: 2025-01-08 20:48:28 UTC
README
Simple stateless configuration manager
Formats
Supported formats: PHP
, JSON
and INI
.
Usage
use Kote\Config; $config = Config\getConfig("/path/to/config", Config\Formats\JSON); $someKey = Config\getValue($config, "config1.someKey", defaultValue); $key = Config\getValue($config, "other.key"); $token = Config\getValue($config, "app.token");