PHPackages                             core45/system-settings-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. core45/system-settings-db

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

core45/system-settings-db
=========================

Get system settings for your Laravel app from database

0.1.5(3y ago)11.9kMITPHP

Since Jun 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/core45/system-settings-db)[ Packagist](https://packagist.org/packages/core45/system-settings-db)[ RSS](/packages/core45-system-settings-db/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)DependenciesVersions (6)Used By (0)

system-settings-db
==================

[](#system-settings-db)

Very simple package for storing settings for your Laravel project in the database.

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

[](#installation)

Install the package with composer:

```
composer require core45/system-settings-db
```

Publish the package files:

```
php artisan vendor:publish --provider="Core45\SystemSettingsDb\SystemSettingsDbServiceProvider"

```

Migrate the database:

```
php artisan migrate

```

Usage
-----

[](#usage)

After migrating the new table system\_settings will be created in the database. The package doesn't provide a UI for managing the settings. You have to add/modify/delete the records on your own. The important columns are:

- key: the key of the setting
- value: the value of the setting

The other columns are for your convenience. You can also add your own columns to the table if you like.

### Setting a value

[](#setting-a-value)

In the database you can set a value for a key. The key is a string and the value can be a string, integer or boolean.

To access the value of a key you can use the `config()` helper function.

```
config('system-settings.some-key');
```

So for example in your blade template you can use your contact email you previously stored in the settings table:

```
My email is: {{ config('system-settings.email') }}
```

Cache
-----

[](#cache)

The package uses the Laravel cache so if you'd like to see the changes immediately clean the Laravel cache. Default TTL of the cache is 60 seconds. You can change this setting in the config file.

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Every ~14 days

Total

5

Last Release

1107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17904235?v=4)[Kornel](/maintainers/core45)[@core45](https://github.com/core45)

---

Top Contributors

[![core45](https://avatars.githubusercontent.com/u/17904235?v=4)](https://github.com/core45 "core45 (13 commits)")

### Embed Badge

![Health badge](/badges/core45-system-settings-db/health.svg)

```
[![Health](https://phpackages.com/badges/core45-system-settings-db/health.svg)](https://phpackages.com/packages/core45-system-settings-db)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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