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

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

prepr/laravel-settings
======================

Simple Settings package for laravel application

3.0(5y ago)01.3kMITHTMLPHP &gt;=5.6.4

Since Jul 9Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (0)

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

[](#laravel-settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e78ad0131a1f1e37f4030597417d77f443c9e33907682e2b11ecd3dc2f72d3c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726570722f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/prepr/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/66a4c093ad64bac86dcd1f0ead7b240345da02ed6dd22bb3d1a88a3a308aaa20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726570722f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/prepr/laravel-settings)

A Laravel package that provides laravel applications settings module which needed in every application.

Supports laravel &gt;= 5.2

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

[](#installation)

1. composer

Add the following to your composer file.

`"prepr/laravel-settings": "3.0"`

or run the following command:

```
composer require prepr/laravel-settings

```

2. config/app.php \[no need for this step in laravel 5.5 because of packages auto discovery feature\]

add your new provider to the providers array:

```
'providers' => [
    // ...
   	\PREPR\Settings\App\Providers\SettingServiceProvider::class
    // ...
  ],

```

and add Setting class to the aliases array:

```
'aliases' => [
	// ...
	'Settings' => \PREPR\Settings\App\Facades\Setting::class
    // ...
],

```

3. publish

run the following command:

```
php artisan vendor:publish

```

`config/settings.php` and `resources/vendor/settings` will be added to your laravel project.

4. migration

you can set table name in `config/settings.php`

```
return [
	// ...
	// settings package table name the default is `settings`
    'table' => 'settings'
    // ...
];

```

the default table name is `settings`. then run the migration command

```
php artisan migrate

```

settings table will be migrated to your Database.

Package Options
---------------

[](#package-options)

after publishing the package new config file added `config/settings.php` update values as your business requirement:

```
return [
    //settings route
    'route' => 'settings',

    'middleware' => ['web', 'auth'],

    // hidden records not editable from interface when set to false
    'show_hidden_records' => false,

    //javascript format
    'date_format' => 'mm/dd/yyyy',
    // number of digits after the decimal point
    'number_step' => 0.001,

    // upload path for settings of type file
    'upload_path' => 'uploads/settings',

    // valid mime types for settings of type file
    'mimes' => 'jpg,jpeg,png,txt,csv,pdf',

    'per_page' => 10,

    // settings package table name the default is `settings`
    'table' => 'settings'
];

```

How to use
----------

[](#how-to-use)

the default route for settings is

your-domain/settings

it will shows a list of all settings you have and you can manage your settings from there.

in the code to get a setting value use the facade like that

Validate if the key exist:

```
\Settings::has('SETTING_KEY');
```

```
\Settings::get('SETTING_KEY');
\Settings::get('SETTING_KEY', 'Default value if not exist');
```

for example:

```
\Settings::get('SITE_TITLE', 'Laravel Settings');
```

also you can use astrisk to get group of settings. for example:

```
\Settings::get('MAIL_*');
```

will return an array of all settings with keys started with MAIL such as:

```
[
'MAIL_DRIVER' => 'smtp',
'MAIL_HOST'   => 'mailtrap.io',
'MAIL_PORT'   => '2525',
]

```

in case of file type a full path will return:

```
config('settings.upload_path') . '/' . $value;

```

such as:

uploads/settings/site\_logo.png

===================================

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

3

Last Release

2138d ago

Major Versions

1.0 → 2.02020-07-09

2.0 → 3.02020-07-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/6772ed6f5c90ea6b5f14845c488bf8fc1a3d85da9eacd4bf97840d404c6c62cb?d=identicon)[preprdeveloper](/maintainers/preprdeveloper)

---

Top Contributors

[![praveen-osits](https://avatars.githubusercontent.com/u/7564904?v=4)](https://github.com/praveen-osits "praveen-osits (4 commits)")[![praveen-prepr](https://avatars.githubusercontent.com/u/68083458?v=4)](https://github.com/praveen-prepr "praveen-prepr (4 commits)")

---

Tags

laravelSettings

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[edvinaskrucas/settings

Persistent settings package for Laravel framework.

22483.1k1](/packages/edvinaskrucas-settings)[zachleigh/laravel-property-bag

Easy Laravel user settings using a property bag

85340.3k](/packages/zachleigh-laravel-property-bag)

PHPackages © 2026

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