PHPackages                             amanangira/php-config-manager - 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. amanangira/php-config-manager

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

amanangira/php-config-manager
=============================

This library allows developers to implement different formats of file based configurations.

v1.3(7y ago)126MITPHP

Since Mar 28Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

PHP Configuration Manager
=========================

[](#php-configuration-manager)

This library allows developers to use file based configurations in easy, organized and syntax friendly way. The library has been built keeping ease and minimal effort for developer in mind. It currently supports only two types i.e. JSON and PHP arrays. The base classes are easily extendible for further file type supports.

Installation
------------

[](#installation)

### Composer

[](#composer)

`composer require amanangira/php-config-manager`

### Git

[](#git)

`git clone https://github.com/amanangira/php-config-manager.git`

Usage
-----

[](#usage)

Initializing
------------

[](#initializing)

### Php Array based configuration manager

[](#php-array-based-configuration-manager)

```
use AmanAngira\ConfigManager\PhpArray\Manager;

$path = __DIR__ . '/config'; //Directory where the library expects the configuration files
$manager = new Manager($path); //Initializing object with the configurations path

```

### JSON based configuration manager

[](#json-based-configuration-manager)

```
use AmanAngira\ConfigManager\Json\Manager;

$path = __DIR__ . '/config'; //Directory where the library expects the configuration files
$manager = new Manager($path); //Initializing object with the configurations path

```

Accessing Configuration Value
-----------------------------

[](#accessing-configuration-value)

```
$value = $manager->get('foo.var'); //use file name only (without extension) followed by full stop to access child values
if( $value === Manager::NOT_FOUND_FLAG ) //library flag if a value is not defined
  echo "Value not defined";
else
  echo $value;

```

To Do
-----

[](#to-do)

- Implement cache based configuration
- Enable modifying config values in current request scope

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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

Every ~0 days

Total

4

Last Release

2651d ago

### Community

Maintainers

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

---

Top Contributors

[![amanangira](https://avatars.githubusercontent.com/u/19432766?v=4)](https://github.com/amanangira "amanangira (22 commits)")[![YashKumarVerma](https://avatars.githubusercontent.com/u/14032427?v=4)](https://github.com/YashKumarVerma "YashKumarVerma (1 commits)")

---

Tags

phpphp-frameworkphp-library

### Embed Badge

![Health badge](/badges/amanangira-php-config-manager/health.svg)

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

###  Alternatives

[friendsofsymfony/comment-bundle

This Bundle provides threaded comment functionality for Symfony applications

459754.2k5](/packages/friendsofsymfony-comment-bundle)[toflar/state-set-index

Implementation of the State Set Index Algorithm

13246.1k5](/packages/toflar-state-set-index)[0rpc/zerorpc-php

A Standard ZeroRPC client.

1514.6k1](/packages/0rpc-zerorpc-php)

PHPackages © 2026

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