https://github.com/fwolf/config.php
https://github.com/fwolf/config.php
config globalconfig options
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fwolf/config.php
- Owner: fwolf
- Created: 2017-08-12T05:19:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T08:31:30.000Z (almost 9 years ago)
- Last Synced: 2026-01-01T12:18:03.038Z (6 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
[](https://travis-ci.org/fwolf/config.php)
[](https://packagist.org/packages/fwolf/config)
[](https://packagist.org/packages/fwolf/config)
[](https://insight.sensiolabs.com/projects/334aaf4a-84da-49e4-bee3-0b17c99ebfc9)
[](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.