sframe/config
Composer 安装命令:
composer require sframe/config
包简介
config component
关键字:
README 文档
README
A simple way to load array config in file.
Installation
composer require "sframe/config:dev-master"
Usage
config_path/test.php
return array( 'a' => 'aaa', 'b' => array( 'b1' => '111', 'b2' => '222' ) );
config_path/tt.php
return array( 'hello' => 'hhhhh' );
demo.php
$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');
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-23