simpl/config
Composer 安装命令:
composer require simpl/config
包简介
Combines the simplicity of `.env` files with the flexibility of defining arrays of config values.
README 文档
README
Simple configuration provider based on PHP dotenv
Combines the simplicity of .env files with the flexibility of defining arrays of config values.
Installation
composer require simpl/config
Basic Usage
<?php use Simpl\Config; $config = new Config(); var_dump($config->get('app.debug'));
See https://simpl-php.com/components/config for full documentation.
Testing
composer test
Coding Standards
This library uses PHP_CodeSniffer to ensure coding standards are followed.
I have adopted the PHP FIG PSR-2 Coding Standard EXCEPT for the tabs vs spaces for indentation rule. PSR-2 says 4 spaces. I use tabs. No discussion.
To support indenting with tabs, I've defined a custom PSR-2 ruleset that extends the standard PSR-2 ruleset used by PHP_CodeSniffer. You can find this ruleset in the root of this project at PSR2Tabs.xml
Codesniffer
composer codensiffer
Codefixer
composer codefixer
统计信息
- 总下载量: 103
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-11