Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JanHuang/config
FastD Configuration
https://github.com/JanHuang/config
config php
Last synced: 13 days ago
JSON representation
FastD Configuration
- Host: GitHub
- URL: https://github.com/JanHuang/config
- Owner: fastdlabs
- License: mit
- Created: 2015-05-20T07:14:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T07:07:10.000Z (about 1 year ago)
- Last Synced: 2024-08-24T05:01:26.409Z (5 months ago)
- Topics: config, php
- Language: PHP
- Homepage:
- Size: 109 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Config
[![Build Status](https://travis-ci.org/fastdlabs/config.svg?branch=master)](https://travis-ci.org/fastdlabs/config)
[![Latest Stable Version](https://poser.pugx.org/fastd/config/v/stable)](https://packagist.org/packages/fastd/config)
[![Total Downloads](https://poser.pugx.org/fastd/config/downloads)](https://packagist.org/packages/fastd/config)
[![Latest Unstable Version](https://poser.pugx.org/fastd/config/v/unstable)](https://packagist.org/packages/fastd/config)
[![License](https://poser.pugx.org/fastd/config/license)](https://packagist.org/packages/fastd/config)简单的 PHP 配置解析器,依赖实现于: [Utils](https://github.com/fastdlabs/utils)
## Requirements
* PHP >= 5.6
## Composer
```
composer require fastd/config
```## Usage
```php
use FastD\Config\Config;$config = new Config(array $config, array $variables = []);
$config->load($file);
$config->find($key, $default);
```变量使用 `%` 来标记. 如: `%name%`
## Testing
```
phpunit
```### Support
如果你在使用中遇到问题,请联系: [[email protected]](mailto:[email protected]). 微博: [编码侠](http://weibo.com/ecbboyjan)
### 贡献
非常欢迎感兴趣,愿意参与其中,共同打造更好PHP生态,Swoole生态的开发者。
如果你乐于此,却又不知如何开始,可以试试下面这些事情:
* 在你的系统中使用,将遇到的问题 [反馈](https://github.com/JanHuang/fastD/issues)。
* 有更好的建议?欢迎联系 [[email protected]](mailto:[email protected]) 或 [新浪微博:编码侠](http://weibo.com/ecbboyjan)。### 联系
如果你在使用中遇到问题,请联系: [[email protected]](mailto:[email protected]). 微博: [编码侠](http://weibo.com/ecbboyjan)
## License MIT