PHPackages                             vaslv/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vaslv/laravel-settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vaslv/laravel-settings
======================

Reusable Laravel settings package with typed values and caching.

1.0.8(3mo ago)121MITPHPPHP ^8.2

Since Feb 16Pushed 3mo agoCompare

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

READMEChangelogDependencies (4)Versions (10)Used By (0)

Laravel Settings
================

[](#laravel-settings)

Reusable Laravel package for storing typed settings in the database with caching and a clean API.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10+

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

[](#installation)

```
composer require vaslv/laravel-settings
```

Publish the config and migration:

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

Run migrations:

```
php artisan migrate
```

Configuration
-------------

[](#configuration)

`config/settings.php`

```
return [
    'table' => 'settings',
    'encryption' => [
        'enabled' => false,
    ],
    'cache' => [
        'enabled' => true,
        'ttl' => 3600,
        'key' => 'app_settings',
    ],
];
```

If you change `table`, the published migration will use the configured name.

Usage
-----

[](#usage)

### Facade

[](#facade)

```
use Settings;

Settings::get('site.legal_text');
Settings::set('site.enabled', true);
Settings::set('site.legal_text', '# Legal', 'markdown');
Settings::set('legal_text', '# Legal'); // group = null
```

### Helper

[](#helper)

```
setting('site.legal_text');
setting('site.enabled', false);
setting('site.legal_text', '# Legal', 'markdown');
setting()->groups();
```

Supported Types
---------------

[](#supported-types)

- string
- boolean
- integer
- float
- html
- json
- markdown

Types are stored explicitly in the DB and cast on read.

Cache
-----

[](#cache)

The package caches all settings under one key and clears it automatically on `set`.

Encryption
----------

[](#encryption)

Enable encryption to store raw values in encrypted form in the database. Values are decrypted on read.

```
return [
    'encryption' => [
        'enabled' => true,
    ],
];
```

Code Style
----------

[](#code-style)

Code is formatted to comply with Laravel Pint.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Every ~0 days

Total

9

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/032ebe8f61d00ae1b569fd7f418e7f09825d093784070f7c2effd1c67d6fc3a0?d=identicon)[vaslv](/maintainers/vaslv)

---

Top Contributors

[![vaslv](https://avatars.githubusercontent.com/u/1648799?v=4)](https://github.com/vaslv "vaslv (11 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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