PHPackages                             nschwab/configmgr - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. nschwab/configmgr

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

nschwab/configmgr
=================

A PHP configuration manager.

v0.0.1-alpha(5y ago)30MITPHPPHP &gt;=7.4.0

Since Aug 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SchwabNicolas/ConfigMGR)[ Packagist](https://packagist.org/packages/nschwab/configmgr)[ Docs](https://github.com/SchwabNicolas/ConfigMGR)[ RSS](/packages/nschwab-configmgr/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ConfigMGR
=========

[](#configmgr)

ConfigMGR is a Configuration Manager for PHP. It is meant to remove all these old `config.php` files in a simple and efficient way.

Install with Composer
---------------------

[](#install-with-composer)

You can install this library with [Composer](https://getcomposer.org).

```
composer require nschwab/configmgr

```

Simple example
--------------

[](#simple-example)

You can find a simple example in the `/example/` directory.

String interpolation
--------------------

[](#string-interpolation)

String interpolation is possible within your config file. By using curly brackets "{ }", you can specify any variable or constants defined in your config. It will look for constants defined by the system before checking for configuration keys.

### Example

[](#example)

```
{
    "constants": {
      "DB_NAME": "testDb",
      "SQL_USER": "root",
      "SQL_HOST": "localhost",
      "SQL_PASSWORD": "123456",
      "CONNECTION_STRING": "Server={SQL_HOST}; Database={DB_NAME}; User Id={SQL_USER}; Password={SQL_PASSWORD}",
      "VERSION": "v1.7.3-alpha {PHP_VERSION}"
    }
}
```

Features
--------

[](#features)

- Loading configuration from JSON
- Creating variables from configuration
- Defining constants from configuration
- Format content of a configuration key with another
- Format content of multiple configuration keys with another
- Composer package
- Search to format content with already defined constants
- Custom markup
- Crawl recursively through tables to format content with configuration keys
- Crawl recursively through objects to format content with configuration keys
- Load tables from CSV
- Load objects from JSON
- Monolog integration

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

2082d ago

### Community

Maintainers

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

---

Top Contributors

[![SchwabNicolas](https://avatars.githubusercontent.com/u/44491581?v=4)](https://github.com/SchwabNicolas "SchwabNicolas (22 commits)")

---

Tags

configurationconfiguration-filesconfiguration-managementphpphp74webjsonconfigurationconfigconfiguration manager

### Embed Badge

![Health badge](/badges/nschwab-configmgr/health.svg)

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

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M169](/packages/hassankhan-config)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)[yosymfony/config-loader

Configuration file loader

10108.1k1](/packages/yosymfony-config-loader)

PHPackages © 2026

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