PHPackages                             archerzdip/laravel-settings - 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. archerzdip/laravel-settings

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

archerzdip/laravel-settings
===========================

Global key-value store in the database, like int string array json and so on.

1.0(7y ago)1181MITPHPPHP &gt;=5.6

Since May 22Pushed 7y agoCompare

[ Source](https://github.com/ArcherZdip/laravel-settings)[ Packagist](https://packagist.org/packages/archerzdip/laravel-settings)[ RSS](/packages/archerzdip-laravel-settings/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel-setting
===============

[](#laravel-setting)

**Global key-value store in the database**

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

[](#installation)

You can install the package via composer:

```
composer require archerzdip/laravel-settings
```

or

```
// composer.json
"archerzdip/laravel-settings":"dev-master"
// composer update
composer update
```

### Publish, migrate

[](#publish-migrate)

By running `php artisan vendor:publish --provider="ArcherZdip\Setting\SettingsServiceProvider"` in your project all files for this package will be published. For this package, it's only a migration. Run `php artisan migrate` to migrate the table. There will now be an options table in your database.

Usage
-----

[](#usage)

**With the setting() helper, we can get and set settings:**

```
// Get setting object
setting();

// Get setting value
setting('key','default');

// Set setting value
setting_set(string $key, $valve, $type = null, $description = null);

// Check the setting exists
setting_exists(string $key);

// Remove the setting value
setting_remove(string $key);
```

**If you want to check if an setting exists, you can use the facade:**

```
use Setting;
$check = Setting::exists('someKey');
```

Console
-------

[](#console)

It is also possible to set setting within the console:

```
php artisan setting:set {someKey} {someValue}
```

And it is also possible to get setting within the console:

```
php artisan setting:get {someKey}
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2596d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37647592?v=4)[archerZdip](/maintainers/ArcherZdip)[@ArcherZdip](https://github.com/ArcherZdip)

### Embed Badge

![Health badge](/badges/archerzdip-laravel-settings/health.svg)

```
[![Health](https://phpackages.com/badges/archerzdip-laravel-settings/health.svg)](https://phpackages.com/packages/archerzdip-laravel-settings)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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