PHPackages                             karjah/laravel-site-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. [Framework](/categories/framework)
4. /
5. karjah/laravel-site-settings

ActiveLibrary[Framework](/categories/framework)

karjah/laravel-site-settings
============================

Simple settings stored in the database.

v1.0.0(1mo ago)01MITPHPPHP ^8.4

Since Apr 22Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Site Settings for Laravel
=========================

[](#site-settings-for-laravel)

A lightweight, headless key-value settings engine with automatic caching.

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

[](#installation)

1. Install via composer:

```
composer require karjah/laravel-site-settings
```

2. Run the migrations:

```
php artisan migrate
```

3. Publish the config:

```
php artisan vendor:publish --tag=site-settings-config
```

Usage
-----

[](#usage)

### Using the Model

[](#using-the-model)

You can interact with the settings directly via the Setting model. This is recommended for better IDE support.

```
use Karjah\SiteSettings\Models\Setting;

// Set a value
Setting::set('site_name', 'My Awesome Site');

// Get a value
$name = Setting::get('site_name', 'Default Name');
```

### Using the Helper

[](#using-the-helper)

For quick access in Blade views or controllers, you can use the global helper function:

```
// Set multiple values
site_setting([
'contact_email' => 'admin@example.com',
'maintenance_mode' => 'off'
]);

// Get a value
{{ site_setting('site_name') }}
```

### Retrieving Values

[](#retrieving-values)

The first call fetches from the database and caches the results forever; subsequent calls hit the cache for high performance.

### Cache Management

[](#cache-management)

The cache is automatically cleared whenever you use the set() method or the helper to update a value. If you manually edit the database directly, run:

```
php artisan cache:forget site_settings
```

### Config

[](#config)

Ths published config file is just for a simple place to put settings to load with `config('site-settings.')`

You may need to refresh the config if the values have been cached:

```
php artisan config:clear
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd827b2f3efe7fd857c33f99b53aed72bb1306e4148d6eb342a2ac8ef89d77e9?d=identicon)[karjah](/maintainers/karjah)

---

Top Contributors

[![karjah](https://avatars.githubusercontent.com/u/5018964?v=4)](https://github.com/karjah "karjah (2 commits)")

---

Tags

frameworklaravellogging

### Embed Badge

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

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

###  Alternatives

[laravel/laravel

The skeleton application for the Laravel framework.

84.4k62.4M1.0k](/packages/laravel-laravel)[unopim/unopim

UnoPim Laravel PIM

10.1k2.2k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3861.7k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11914.4k42](/packages/kompo-kompo)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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