PHPackages                             jameswmcnab/config-db - 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. jameswmcnab/config-db

Abandoned → [arcanedev/laravel-settings](/?search=arcanedev%2Flaravel-settings)ArchivedLibrary[Database &amp; ORM](/categories/database)

jameswmcnab/config-db
=====================

Database config loader for Laravel, for simple key=&gt;value configuration.

v3.0.0(7y ago)22.1k1[1 issues](https://github.com/jameswmcnab/config-db/issues)MITPHPPHP ^7.1.3

Since Mar 5Pushed 6y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (8)Used By (0)

Abandoned
=========

[](#abandoned)

This package is abandoned and no longer maintained. The author suggests using the arcanedev/laravel-settings package instead.

Database configuration loader for Laravel
=========================================

[](#database-configuration-loader-for-laravel)

[![Build Status](https://camo.githubusercontent.com/790a502e335790e3d50209d475a5299c29f8c90d3303664c7a98a29e6efdce6d/68747470733a2f2f7472617669732d63692e6f72672f6a616d6573776d636e61622f636f6e6669672d64622e737667)](https://travis-ci.org/jameswmcnab/config-db)[![Latest Stable Version](https://camo.githubusercontent.com/707a85e10c42a64b1292ebb7fca9b6cd36fa3a8ae8330aa373c6228a0b01ab06/68747470733a2f2f706f7365722e707567782e6f72672f6a616d6573776d636e61622f636f6e6669672d64622f762f737461626c65)](https://packagist.org/packages/jameswmcnab/config-db)[![Latest Unstable Version](https://camo.githubusercontent.com/2cad3cc5151b77bacc94bce95c21501b060bab048a6954efff2a82a37dcceb50/68747470733a2f2f706f7365722e707567782e6f72672f6a616d6573776d636e61622f636f6e6669672d64622f762f756e737461626c65)](https://packagist.org/packages/jameswmcnab/config-db)[![Total Downloads](https://camo.githubusercontent.com/db17be750341326c87df1963f07e16a450ce648cd0c2741ffb4c4b512ed9b8c1/68747470733a2f2f706f7365722e707567782e6f72672f6a616d6573776d636e61622f636f6e6669672d64622f646f776e6c6f616473)](https://packagist.org/packages/jameswmcnab/config-db)[![License](https://camo.githubusercontent.com/df5354c9977ae2f3ee83f081b95bd12a6e7e4193310e9ab17b04a11c010a7d27/68747470733a2f2f706f7365722e707567782e6f72672f6a616d6573776d636e61622f636f6e6669672d64622f6c6963656e7365)](https://packagist.org/packages/jameswmcnab/config-db)

This package provides simple database config storage and loading for Laravel, in the form of a single table to store key =&gt; value pairs.

Laravel Versions
----------------

[](#laravel-versions)

LaravelThis Package5.4.\*^2.0Make sure you consult the Upgrade Guide (`UPGRADE.md`) when upgrading.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require jameswmcnab/db-config
```

Next include the service provider within your `config/app.php` file.

```
'providers' => [
    Jameswmcnab\ConfigDb\ConfigDbServiceProvider::class,
];
```

If you wish to use the `ConfigDb` facade in your application, register within your `config/app.php` file.

```
'aliases' => [
    'ConfigDb' => Jameswmcnab\ConfigDb\Facades\ConfigDb::class,
];
```

Finally run the migrations to create the database table:

```
php artisan migrate
```

Customising the database table name
-----------------------------------

[](#customising-the-database-table-name)

If you want to change the default config table name to something other than `config` then publish the package config:

```
php artisan vendor:publish --provider="Jameswmcnab\ConfigDb\ConfigDbServiceProvider"
```

Then edit `config/config-db.php` in your main application directory to change the table name. Note that you'll need to do this **before** running the migration.

Usage
-----

[](#usage)

### Save configuration by key:

[](#save-configuration-by-key)

```
ConfigDb::save('foo', 'bar');
```

### Get configuration by key:

[](#get-configuration-by-key)

```
ConfigDb::get('foo'); // bar
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~240 days

Recently: every ~264 days

Total

6

Last Release

2879d ago

Major Versions

v0.5 → v1.02015-07-29

v1.0 → v2.0.02017-09-15

v1.1.0 → v3.0.02018-06-21

PHP version history (3 changes)v0.5PHP &gt;=5.4.0

v2.0.0PHP &gt;=5.6.4

v3.0.0PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a5fa266208f4a3e5bcc20ea95c5dddabac7780f1010c2457a2580070d9e8f0b?d=identicon)[jameswmcnab](/maintainers/jameswmcnab)

---

Top Contributors

[![jameswmcnab](https://avatars.githubusercontent.com/u/718954?v=4)](https://github.com/jameswmcnab "jameswmcnab (14 commits)")[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M46](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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