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

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

pakpromo/laravel-settings
=========================

PakPromo settings module for Laravel projects like SnippetCMS

v2.1.1(1y ago)013MITPHPPHP ^8.2CI passing

Since Apr 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

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

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

[![PHP Composer](https://github.com/Pak-Promo/laravel-settings/actions/workflows/php.yml/badge.svg)](https://github.com/Pak-Promo/laravel-settings/actions/workflows/php.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/2e297fd435656702173d726a1a00462fd213a4697c737f1765ff8c8578e0f172/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616b70726f6d6f2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pakpromo/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/53fd2e46ba6e6219cbe511e464e590f25e5d7a768df3f30aaad5ed471bf40675/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70616b70726f6d6f2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pakpromo/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 pakpromo/laravel-settings
```

### 2. Publish

[](#2-publish)

Publish config file.

```
php artisan vendor:publish --provider="PakPromo\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="PakPromo\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

Maintenance47

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

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

Every ~4 days

Total

4

Last Release

390d ago

Major Versions

v1.0.0 → v2.0.02025-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/65a58634e4ea9e6cf007748157f3c8b806730a3ff296f3cc8ad648630fd6562c?d=identicon)[pakpromo](/maintainers/pakpromo)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pakpromo-laravel-settings/health.svg)](https://phpackages.com/packages/pakpromo-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

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)
