PHPackages                             genesis/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. genesis/config

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

genesis/config
==============

Simple way to manage config for multiple environments.

1.0.0(7y ago)0105PHP

Since Jan 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/forceedge01/config)[ Packagist](https://packagist.org/packages/genesis/config)[ RSS](/packages/genesis-config/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Installation
============

[](#installation)

A very simple way to manage config based on environments.

```
$ composer require genesis/config

```

Usage
=====

[](#usage)

Create database.json file with the following content:

```
{
    "development": {
        "name": "",
        "username": "",
        "password": ""
    },
    "staging": {
        "name": "",
        "username": "",
        "password": ""
    },
    "production": {
        ...
    }
}
```

```
const ENVIRONMENT = 'development';
const PATH = __DIR__ . '/allJsonConfigs/';

$config = new Config(self::PATH, self::ENVIRONMENT);
$dbname = $config->set('database')->get('name');
$username = $config->get('username');
$password = $config->get('password');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2677d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4529502cab11a6993a59a1d1a2818f438d073636e3f59dd617a259be74e3feae?d=identicon)[forceedge](/maintainers/forceedge)

---

Top Contributors

[![forceedge01](https://avatars.githubusercontent.com/u/1619816?v=4)](https://github.com/forceedge01 "forceedge01 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[ohseesoftware/laravel-server-analytics

Server side analytics for your Laravel application or website.

1421.2k1](/packages/ohseesoftware-laravel-server-analytics)[luchavez/boilerplate-generator

A boilerplate generator for building packages and implementing DDD on Laravel 8|9|10.

111.7k2](/packages/luchavez-boilerplate-generator)

PHPackages © 2026

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