PHPackages                             codepeak/dsettings - 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. [Caching](/categories/caching)
4. /
5. codepeak/dsettings

AbandonedArchivedLibrary[Caching](/categories/caching)

codepeak/dsettings
==================

Store custom settings in database and add cache layer for performance

2220PHP

Since Apr 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/codepeak/dsettings)[ Packagist](https://packagist.org/packages/codepeak/dsettings)[ RSS](/packages/codepeak-dsettings/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

DSetting (Laravel4 Package)
===========================

[](#dsetting-laravel4-package)

[![Build Status](https://camo.githubusercontent.com/dbea18b5cca9c797f97358879199e6cfa4e966f4728f8d51d41dff4ad70d6225/68747470733a2f2f7472617669732d63692e6f72672f636f64657065616b2f6473657474696e67732e706e67)](https://travis-ci.org/codepeak/dsettings)

Store and handle custom settings in the database. Will use the Laravel cache system to minimize database queries.

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

In the `require` key of `composer.json` file add the following

```
"codepeak/dsettings": "dev-master"

```

Run the Composer update comand

```
$ composer update

```

In your `config/app.php` add `'Codepeak\Dsettings\DsettingsServiceProvider'` to the end of the `$providers` array

```
'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Codepeak\Dsettings\DsettingsServiceProvider',

),

```

At the end of `config/app.php` add `'DSetting'    => 'Codepeak\Dsettings\Facades\DSetting'` to the `$aliases` array

```
'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'DSetting'    => 'Codepeak\Dsettings\Facades\DSetting',

),

```

Run the migration update command to create the `settings` table

```
$ php artisan migrate --package=codepeak/dsettings

```

### Usage

[](#usage)

Get value from the database (or cache if fetched earlier)

```
\DSetting::get('database.key');

```

Store or update value

```
\DSetting::set('database.key', 'my nice value');

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/199769?v=4)[Codepeak AB](/maintainers/codepeak)[@codepeak](https://github.com/codepeak)

---

Top Contributors

[![robbanl](https://avatars.githubusercontent.com/u/922250?v=4)](https://github.com/robbanl "robbanl (6 commits)")

### Embed Badge

![Health badge](/badges/codepeak-dsettings/health.svg)

```
[![Health](https://phpackages.com/badges/codepeak-dsettings/health.svg)](https://phpackages.com/packages/codepeak-dsettings)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)

PHPackages © 2026

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