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

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

statelyworld/laravel-settings
=============================

A minimal Laravel package to manage key-value settings. A global application settings management package for Laravel, similar to WordPress options

v1.0.0(1y ago)111MITPHPPHP &gt;=7.4

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gauravrjoshi/laravel-settings)[ Packagist](https://packagist.org/packages/statelyworld/laravel-settings)[ RSS](/packages/statelyworld-laravel-settings/feed)WikiDiscussions main Synced today

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

Laravel Settings Manager
========================

[](#laravel-settings-manager)

A minimal and reusable Laravel package to store key-value settings in your database.

---

📦 Installation
--------------

[](#-installation)

Require the package via Composer:

```
composer require statelyworld/laravel-settings
```

If you encounter the error:

> Could not find a version of package statelyworld/laravel-settings matching your minimum-stability (stable)...

Add the following to your **root project's `composer.json`** before requiring again:

```
"minimum-stability": "dev",
"prefer-stable": true
```

---

✅ What to Do After Installation?
--------------------------------

[](#-what-to-do-after-installation)

### 1. **Run Migrations**

[](#1-run-migrations)

#### Option 1: Auto-Load Migrations (Recommended)

[](#option-1-auto-load-migrations-recommended)

Run the following to create the `settings` table:

```
php artisan migrate
```

#### Option 2: Publish Migration (Optional)

[](#option-2-publish-migration-optional)

If you prefer to manage the migration file in your own project:

```
php artisan vendor:publish --tag=laravel-settings-migrations
php artisan migrate
```

---

🚀 Usage Example
---------------

[](#-usage-example)

### Set a Value

[](#set-a-value)

```
use StatelyWorld\LaravelSettings\Models\Setting;

// Store a setting
Setting::set('site_name', 'My Awesome Website');
```

### Get a Value

[](#get-a-value)

```
use StatelyWorld\LaravelSettings\Models\Setting;

// Retrieve the setting or use a default if not found
$siteName = Setting::get('site_name', 'Default Site Name');
```

---

🧑‍💻 Example Use Cases
---------------------

[](#‍-example-use-cases)

- Store API keys or tokens
- Enable/disable site features (maintenance mode, promotions)
- Site-wide text configurations (site name, footer text)
- Track process IDs or timestamps
- Store any small settings without adding extra config files

---

📂 Package Structure
-------------------

[](#-package-structure)

```
src/
└── Models/
    └── Setting.php
└── SettingServiceProvider.php
database/
└── migrations/
    └── create_settings_table.php
composer.json
README.md

```

---

✅ Laravel Version Compatibility
-------------------------------

[](#-laravel-version-compatibility)

Laravel VersionSupported9.x✅10.x✅11.x✅---

📝 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

---

🙏 Contributing
--------------

[](#-contributing)

We welcome contributions. Please fork the repository, make changes, and submit a pull request.

---

👨‍💻 Maintainer
--------------

[](#‍-maintainer)

- [Gaurav Joshi](https://github.com/gauravrjoshi)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance46

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

415d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30743792?v=4)[Gaurav Joshi](/maintainers/gauravrjoshi)[@gauravrjoshi](https://github.com/gauravrjoshi)

---

Top Contributors

[![gauravrjoshi](https://avatars.githubusercontent.com/u/30743792?v=4)](https://github.com/gauravrjoshi "gauravrjoshi (10 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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