shopsys/sysconfig
Composer 安装命令:
composer require shopsys/sysconfig
包简介
System configuration for Shopsys
关键字:
README 文档
README
###More info
How to use
In your composer.json, add the following line
"shopsys/php-shopsys-sysconfig": "dev-master"
In your code, include the class:
use SysConfig/SysConfig;
(or use composer's autoloader)
and then in your functions, use it like this:
$this->config = $SysConfig->getConfig();
this will populate $this->config with the config values from your config-directory
Protip
Copy config/sysconfig.global.php.dist to your projects config/autoload/sysconfig.local.php and set your config values
Tests:
execute phpunit vendor/shopsys/sysconfig/tests/ from the root of your project to run the tests
#####License:
Sven Anders Robbestad (C) 2014
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 3
其他信息
- 授权协议: CC-BY
- 更新时间: 2014-07-02