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

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

terbium/db-config
=================

Laravel Config with DB-storage support

2.0.2(9y ago)2111.2k24[2 issues](https://github.com/TerbiumLibs/dbConfig/issues)[2 PRs](https://github.com/TerbiumLibs/dbConfig/pulls)1MITPHPPHP &gt;=5.4.0

Since May 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/TerbiumLibs/dbConfig)[ Packagist](https://packagist.org/packages/terbium/db-config)[ RSS](/packages/terbium-db-config/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (1)

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

37

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~197 days

Recently: every ~126 days

Total

6

Last Release

3400d ago

Major Versions

1.0.0 → 2.0.02015-09-09

1.0.x-dev → 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://www.gravatar.com/avatar/3d71d9096f85a96307a91e8debf8408c91c3cd6bfae629f0d0628071777c539e?d=identicon)[yaapis](/maintainers/yaapis)

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

---

Top Contributors

[![yaapis](https://avatars.githubusercontent.com/u/390195?v=4)](https://github.com/yaapis "yaapis (20 commits)")[![terion-name](https://avatars.githubusercontent.com/u/1060205?v=4)](https://github.com/terion-name "terion-name (6 commits)")[![ameenross](https://avatars.githubusercontent.com/u/859737?v=4)](https://github.com/ameenross "ameenross (2 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)")[![prasol](https://avatars.githubusercontent.com/u/538838?v=4)](https://github.com/prasol "prasol (1 commits)")[![bleeloe](https://avatars.githubusercontent.com/u/6658727?v=4)](https://github.com/bleeloe "bleeloe (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/terbium-db-config/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminatech/array-factory

Allows DI aware object creation from array definition

2159.6k6](/packages/illuminatech-array-factory)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[torann/registry

Laravel registry manager for application configurations

222.0k](/packages/torann-registry)

PHPackages © 2026

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