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

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

chrissileinus/config-php
========================

A storage to hold the config of an app. It ist mainly static but as a Singleton with integrated interfaces ArrayAccess, Serializable, JsonSerializable, IteratorAggregate and Traversable.

0.1.0(4y ago)028MITPHPPHP &gt;=8.1

Since Jun 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/chrissileinus/configPHP)[ Packagist](https://packagist.org/packages/chrissileinus/config-php)[ RSS](/packages/chrissileinus-config-php/feed)WikiDiscussions master Synced today

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

configPHP
=========

[](#configphp)

A storage to hold the config of a app. It ist mainly static but as a Singleton I have integrated the interfaces `ArrayAccess`, `Serializable`, `JsonSerializable`, `IteratorAggregate` and `Traversable`.

Why
---

[](#why)

There was a need for a small class that is able to read the config from serval inputs and files so that it is stored in a way that it is globally accessible with serval interfaces.

Usage
-----

[](#usage)

```
Config\Storage::integrate(
  // default values
  [
    'database' => [
      'host' => "localhost",
      'port' => 3306,
      'name' => "databasename",
      'user' => "username",
      'pass' => "fdsgsdgs",
    ],
    'log' => [
      'timezone' => "UTC",
      'console' => [
        'level' => Log\Level::NONE,
        'ignore' => [],
      ]
    ]
  ],
  // default value get replaced by values from config files.
  '/etc/App/*.yaml',
  '/etc/App/*.json'
);

$dbConfig = Config\Storage::getInstance()['database'];
$db = new PDO("mysql:host={$dbConfig['host']};port={$dbConfig['port']};dbname={$dbConfig['name']}", $dbConfig['user'], $dbConfig['pass']);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1471d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/62146011?v=4)[Christian Backus](/maintainers/chrissileinus)[@chrissileinus](https://github.com/chrissileinus)

---

Top Contributors

[![chrissileinus](https://avatars.githubusercontent.com/u/62146011?v=4)](https://github.com/chrissileinus "chrissileinus (31 commits)")

### Embed Badge

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

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

###  Alternatives

[orchidjs/tom-select

Tom Select is a dynamic, framework agnostic, and lightweight (~16kb gzipped) &lt;select&gt; UI control. With autocomplete and native-feeling keyboard navigation, it's useful for tagging, contact lists, country selectors, and so on.

2.2k2.1k](/packages/orchidjs-tom-select)[awcodes/filament-versions

A mostly useless package to display framework versions at the bottom of the navigation panel.

4476.5k8](/packages/awcodes-filament-versions)[contao/easy-coding-standard

EasyCodingStandard configurations for Contao

12227.5k343](/packages/contao-easy-coding-standard)

PHPackages © 2026

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