PHPackages                             fwolf/config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fwolf/config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fwolf/config
============

Config management utility

v1.0(8y ago)0291MITPHPPHP &gt;=5.6

Since Sep 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fwolf/config.php)[ Packagist](https://packagist.org/packages/fwolf/config)[ RSS](/packages/fwolf-config/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Config
======

[](#config)

[![Travis](https://camo.githubusercontent.com/27abbfc4f8b738487d67a5c0b0a4d749b6140107490f6a8b655849a96c81453e/68747470733a2f2f7472617669732d63692e6f72672f66776f6c662f636f6e6669672e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fwolf/config.php)[![Latest Stable Version](https://camo.githubusercontent.com/cab888ee0a7dee2200309e372841d7e00be836c82fe6c357b5fcdd52e819d0ea/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f636f6e6669672f762f737461626c65)](https://packagist.org/packages/fwolf/config)[![License](https://camo.githubusercontent.com/feac08555119673fbe78ffa52ac30b3059b07fc07fb6178057b46fb913ee446d/68747470733a2f2f706f7365722e707567782e6f72672f66776f6c662f636f6e6669672f6c6963656e7365)](https://packagist.org/packages/fwolf/config)[![SensioLabsInsight](https://camo.githubusercontent.com/6a86c74f9fb2fad750bbbdaf6b3e3458dda76363845f682e910172705aa1f2d3/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33333461616634612d383464612d343965342d626565332d3062313763393965626663392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/334aaf4a-84da-49e4-bee3-0b17c99ebfc9)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/426c28156830e20c52267cef6c987b443785c01a84aa58783cd2269ff57c2e8d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66776f6c662f636f6e6669672e7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fwolf/config.php/?branch=master)

Config class for easy access.

Install
-------

[](#install)

```
composer require fwolf/config

```

Usage
-----

[](#usage)

Browse `demo/` for example code.

### Config, ConfigAwareTrait

[](#config-configawaretrait)

Access config value by key, single or multiple, may have sections.

### GlobalConfig

[](#globalconfig)

Application level config instance.

### GlobalConfigWithCheckServerId, CheckServerIdTrait

[](#globalconfigwithcheckserverid-checkserveridtrait)

Restrict behavior by server id.

### StringOptions, StringOptionsAwareTrait

[](#stringoptions-stringoptionsawaretrait)

Parse config string like 'foo=42, bar=hello'.

License
-------

[](#license)

Distribute under the MIT license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe653cf9dc784f63ca63be3ceb306876061907496a707d7d813b8ea5ec2bb3e9?d=identicon)[fwolf](/maintainers/fwolf)

---

Tags

configglobalconfigoptionsconfigoptionglobalConfig

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fwolf-config/health.svg)

```
[![Health](https://phpackages.com/badges/fwolf-config/health.svg)](https://phpackages.com/packages/fwolf-config)
```

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[dflydev/dot-access-configuration

Given a deep data structure representing a configuration, access configuration by dot notation.

13414.5M4](/packages/dflydev-dot-access-configuration)[kartik-v/dependent-dropdown

A multi level dependent dropdown JQuery plugin that allows nested dependencies.

1805.0M3](/packages/kartik-v-dependent-dropdown)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
