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

ActiveLibrary

nvanheuverzwijn/php-config
==========================

A generic configuration loader library not specifically based on files

0.0.1(8y ago)0251LGPL3.0PHPPHP &gt;=5.6.0

Since Jun 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nvanheuverzwijn/php-config)[ Packagist](https://packagist.org/packages/nvanheuverzwijn/php-config)[ Docs](http://github.com/nvanheuverzwijn/php-config)[ RSS](/packages/nvanheuverzwijn-php-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Config
======

[](#config)

This library tries it's best to be lightweight and dependency free. The objective is to provide a standard configuration object, a pluggable configuration source objects and a standard factory object to configure the configuration.

Usage
-----

[](#usage)

The main way to instanciate a configuration object is via the ConfigFactory::fromArray static function. This function takes a simple array as a definition of the reader to use in order to generate a configuration object.

The array must respect the structure as shown below.

```
[
    'reader' => [
        [
            'class' => 'ClassName'
            'config' => 'argument passed to the constructor of ClassName'
        ],
        [...]
    ]
]

```

You can then pass this array to ConfigFactory::fromArray function.

```
$conf = \Zwijn\Config\ConfigFactory::fromArray($array);

```

Build system requirements
-------------------------

[](#build-system-requirements)

You need [docker](https://www.docker.com/) and [GNU make](https://www.gnu.org/software/make/manual/make.html).

Tests
-----

[](#tests)

Run below command

```
make test

```

License
-------

[](#license)

See the [license file](https://github.com/nvanheuverzwijn/php-config/blob/master/LICENSE).

Acknowledgement
---------------

[](#acknowledgement)

Inspiration for this library is taken from [Zend\\Config](https://github.com/zendframework/zend-config). I encourage you to take a look at their software.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

3255d ago

### Community

Maintainers

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

---

Top Contributors

[![nvanheuverzwijn](https://avatars.githubusercontent.com/u/943226?v=4)](https://github.com/nvanheuverzwijn "nvanheuverzwijn (5 commits)")

---

Tags

configurationconfig

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

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

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

564302.2M24](/packages/league-config)[hassankhan/config

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

97513.5M169](/packages/hassankhan-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)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

115254.9k1](/packages/dmishh-settings-bundle)[sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

58446.7k34](/packages/sandrokeil-interop-config)

PHPackages © 2026

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