PHPackages                             swichers/configuration-framework - 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. swichers/configuration-framework

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

swichers/configuration-framework
================================

Configuration helper package for loading of environment and platform specific configuration files of different formats.

1.1(11y ago)016Apache-2.0PHPPHP &gt;=5.3.0

Since Apr 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/swichers/configuration-framework)[ Packagist](https://packagist.org/packages/swichers/configuration-framework)[ RSS](/packages/swichers-configuration-framework/feed)WikiDiscussions master Synced today

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

Configuration wrapper
=====================

[](#configuration-wrapper)

Allows easily reading a site's configuration through the use of a `*Config()`wrapper class. It can work on multiple platforms and environments.

This came about from the need to support multiple different platforms, environments, and configuration setups across different project types. I wanted a singular way to work with these different setups instead of having something custom for each platform and project type.

Basic example:
--------------

[](#basic-example)

```
require 'path/to/composer/autoload.php';

use StevenWichers\Configuration\JSONConfig;

$config = new JSONConfig();
$fqdn = $config->getConfigItem('fqdn')->getValue();

```

See `example.php` in the examples folder for more usage examples.

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

[](#installation)

### Using Composer (recommended)

[](#using-composer-recommended)

Installation using [composer](https://getcomposer.org/) is very straightforward. You must add the repository as an entry in your composer.json, as well as requiring the project. A complete composer.json that only includes this project would look like this:

```
{
  "repositories": [
    {
      "url": "https://github.com/swichers/configuration-framework.git",
      "type": "git"
    }
  ],
  "require": {
    "swichers/configuration-framework": "1.*@stable"
  }
}

```

After your composer.json file has been created or updated, you would issue a `composer install` command. The final step is adding the composer autoloader to your project:

```
require 'path/to/vendor/autoload.php';

```

### Other

[](#other)

You can clone this repository to your project and include the classes directly. This project relies on a proper PSR-0/PSR-4 compliant autoloader being configured, but otherwise does not leverage any of the other composer features at this time.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5890607?v=4)[Steven Wichers](/maintainers/swichers)[@swichers](https://github.com/swichers)

---

Top Contributors

[![swichers](https://avatars.githubusercontent.com/u/5890607?v=4)](https://github.com/swichers "swichers (2 commits)")

### Embed Badge

![Health badge](/badges/swichers-configuration-framework/health.svg)

```
[![Health](https://phpackages.com/badges/swichers-configuration-framework/health.svg)](https://phpackages.com/packages/swichers-configuration-framework)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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