PHPackages                             chrisd-autume/db-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. [Database &amp; ORM](/categories/database)
4. /
5. chrisd-autume/db-config

ActiveLibrary[Database &amp; ORM](/categories/database)

chrisd-autume/db-config
=======================

Laravel Config with DB-storage support

2.0.5(8y ago)02.2kMITPHPPHP &gt;=5.4.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ChrisdAutume/dbConfig)[ Packagist](https://packagist.org/packages/chrisd-autume/db-config)[ RSS](/packages/chrisd-autume-db-config/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (10)Used By (0)

Forked from [TerbiumLibs/dbConfig](https://github.com/TerbiumLibs/dbConfig/)!

Laravel 5 Config with DB-storage support
========================================

[](#laravel-5-config-with-db-storage-support)

This package extends default laravel Config, so fallback capability is built in

### For Laravel 4, please use the [1.\* branch](https://github.com/TerbiumLibs/dbConfig/tree/1.0)!

[](#for-laravel-4-please-use-the-1-branch)

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

[](#installation)

Require this package in your composer.json:

```
"terbium/db-config": "2.*"
```

And add the ServiceProvider to the providers array in app/config/app.php

```
'Terbium\DbConfig\DbConfigServiceProvider',
```

Publish config and migrations using artisan CLI.

```
php artisan vendor:publish
```

Run migration to create settings table

```
php artisan migrate
```

You can register the facade in the `aliases` key of your `app/config/app.php` file.

```
'aliases' => array(
    'DbConfig' => 'Terbium\DbConfig\Facade'
)
```

Or replace default one

```
'aliases' => array(
    'Config' => 'Terbium\DbConfig\Facade'
)
```

\##Config

```
return array(
    'table' => 'settings'
);
```

\##Specific commands

\###Store item into database table

```
Config::store($key, $value)
// this sets the key immediately
```

\###Remove item from the database

```
Config::forget($key)
```

\###Clear all current items from memory (they will be reloaded on next call)

```
Config::clear()
```

\###Truncate the table with settings

```
Config::clearDb()
```

\###Return query builder with list of settings from database

```
Config::listDb($wildcard = null)
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~144 days

Recently: every ~168 days

Total

9

Last Release

3274d ago

Major Versions

1.0.0 → 2.0.02015-09-09

1.0.1 → 2.0.22017-01-26

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10086152?v=4)[Christian d'Autume](/maintainers/ChrisdAutume)[@ChrisdAutume](https://github.com/ChrisdAutume)

---

Top Contributors

[![yaapis](https://avatars.githubusercontent.com/u/390195?v=4)](https://github.com/yaapis "yaapis (19 commits)")[![terion-name](https://avatars.githubusercontent.com/u/1060205?v=4)](https://github.com/terion-name "terion-name (6 commits)")[![ChrisdAutume](https://avatars.githubusercontent.com/u/10086152?v=4)](https://github.com/ChrisdAutume "ChrisdAutume (5 commits)")[![nixbpe](https://avatars.githubusercontent.com/u/3845423?v=4)](https://github.com/nixbpe "nixbpe (2 commits)")[![gleb87](https://avatars.githubusercontent.com/u/10814680?v=4)](https://github.com/gleb87 "gleb87 (2 commits)")[![ameenross](https://avatars.githubusercontent.com/u/859737?v=4)](https://github.com/ameenross "ameenross (2 commits)")[![prasol](https://avatars.githubusercontent.com/u/538838?v=4)](https://github.com/prasol "prasol (1 commits)")[![bl8m](https://avatars.githubusercontent.com/u/12661127?v=4)](https://github.com/bl8m "bl8m (1 commits)")

---

Tags

laravelconfiguration

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chrisd-autume-db-config/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.1M11.2k](/packages/illuminate-database)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.5k1](/packages/illuminatech-config)[lemaur/eloquent-publishing

207.8k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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