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(8y 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 today

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 57% 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

2935d 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://avatars.githubusercontent.com/u/718954?v=4)[James William McNab](/maintainers/jameswmcnab)[@jameswmcnab](https://github.com/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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

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

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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