library config
config component
sframe/config
config component
- Thursday, December 4, 2014
- by fredyang
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Config
A simple way to load array config in file., (*1)
Installation
composer require "sframe/config:dev-master"
Usage
config_path/test.php, (*2)
return array(
'a' => 'aaa',
'b' => array(
'b1' => '111',
'b2' => '222'
)
);
config_path/tt.php, (*3)
return array(
'hello' => 'hhhhh'
);
demo.php, (*4)
$config = new SFrame\Config\FileArray('config_path');
$a = $config->get('test.a');
$b1 = $config->get('test.b.b1');
$hl = $config->get('tt.hello', 'default');
$is_exists = $config->has('test.d');
dev-master
9999999-dev
config component
Sources
Download
MIT
The Requires
by
Fred Yang
config