Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fwolf/config.php
https://github.com/fwolf/config.php
config globalconfig options
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/fwolf/config.php
- Owner: fwolf
- Created: 2017-08-12T05:19:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T08:31:30.000Z (about 7 years ago)
- Last Synced: 2024-08-09T08:26:23.106Z (3 months ago)
- Topics: config, globalconfig, options
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Config
[![Travis](https://travis-ci.org/fwolf/config.php.svg?branch=master)](https://travis-ci.org/fwolf/config.php)
[![Latest Stable Version](https://poser.pugx.org/fwolf/config/v/stable)](https://packagist.org/packages/fwolf/config)
[![License](https://poser.pugx.org/fwolf/config/license)](https://packagist.org/packages/fwolf/config)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/334aaf4a-84da-49e4-bee3-0b17c99ebfc9/mini.png)](https://insight.sensiolabs.com/projects/334aaf4a-84da-49e4-bee3-0b17c99ebfc9)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fwolf/config.php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fwolf/config.php/?branch=master)Config class for easy access.
## Install
composer require fwolf/config
## Usage
Browse `demo/` for example code.
### Config, ConfigAwareTrait
Access config value by key, single or multiple, may have sections.
### GlobalConfig
Application level config instance.
### GlobalConfigWithCheckServerId, CheckServerIdTrait
Restrict behavior by server id.
### StringOptions, StringOptionsAwareTrait
Parse config string like 'foo=42, bar=hello'.
## License
Distribute under the MIT license.