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

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

leromo/laravel-settings
=======================

Leromo settings module for Laravel projects like SnippetCMS

v1.0.0(8mo ago)05MITPHPPHP ^8.2

Since Aug 15Pushed 8mo agoCompare

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

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

Settings package for Laravel
============================

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

[![PHP Composer](https://github.com/Leromo-Dev/laravel-settings/actions/workflows/php.yml/badge.svg)](https://github.com/Leromo-Dev/laravel-settings/actions/workflows/php.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/56c9ffcc44b85e2b9b95907ebc75be5dc36433d0a667c998612ec6da6936516f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65726f6d6f2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leromo/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/1d9e67903fb33299fa9ed25cbb6040ee7e9a15e540a7af6b5ff284afdd023ccf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65726f6d6f2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leromo/laravel-settings)

This package allows you to save settings in DB &amp; Cache. You can use helper function to get settings value anywhere in a Laravel project like SnippetCMS.

- Database support
- Helper function
- Cache support

Getting Started
---------------

[](#getting-started)

### 1. Install

[](#1-install)

Run the following command:

```
composer require leromo/laravel-settings
```

### 2. Publish

[](#2-publish)

Publish config file.

```
php artisan vendor:publish --provider="Leromo\LaravelSettings\SettingsServiceProvider" --tag=settings-config
```

### 3. Preparing the database

[](#3-preparing-the-database)

You need to publish the migration to create the media table:

```
php artisan vendor:publish --provider="Leromo\LaravelSettings\SettingsServiceProvider" --tag=settings-migration
```

After that, you need to run migrations.

```
php artisan migrate
```

### 4. Configure

[](#4-configure)

You can change the options of your app from `config/laravel-settings.php` file

Usage
-----

[](#usage)

### Helper

[](#helper)

```
setting()->get('promo');
setting()->get('promo', 'default');
setting()->put('promo', 'snippet');
setting()->delete('promo');
```

### Facade

[](#facade)

```
Setting::get('promo');
Setting::get('promo', 'default');
Setting::put('promo', 'snippet');
Setting::delete('promo');
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

Please see [Releases](../../releases) for more information what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are more than welcome. You must follow the PSR coding standards.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

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

269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96fc4db0fe610add63f16c4b0dd3bf184d344074e303cab167cd2575d22dee2d?d=identicon)[leromo](/maintainers/leromo)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

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

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

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[efureev/laravel-trees

Multi-Tree structures for Laravel

14253.3k4](/packages/efureev-laravel-trees)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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