marella/phig
最新稳定版本:v0.0.1
Composer 安装命令:
composer require marella/phig
包简介
PHP Config library.
README 文档
README
PHP Config Library.
Quick Usage
composer require marella/phig
<?php require 'vendor/autoload.php'; $loader = new \Phig\ConfigLoader(); $config = $loader->read(__DIR__.'/config'); $timezone = $config['app.timezone']; // 'UTC' $locale = $config['app']['locale']; // 'en' $database = $config['database']; // array $host = $database['host']; // 'localhost'
where config directory contains these files:
app.php
<?php return [ 'timezone' => 'UTC', 'locale' => 'en', ];
database.php
<?php return [ 'host' => 'localhost', 'database' => 'forge', 'username' => 'forge', 'password' => '', ];
Documentation
See the wiki for more details and documentation.
Contributing
See contributing guidelines before creating issues or pull requests.
License
Open-source software released under the MIT license.
统计信息
- 总下载量: 2.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-16