nerd-components / config
Simple stateless configuration manager
Installs: 67
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/nerd-components/config
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-10-16 00:31:11 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");