Download the PHP package statelyworld/laravel-settings without Composer
On this page you can find all versions of the php package statelyworld/laravel-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download statelyworld/laravel-settings
More information about statelyworld/laravel-settings
Files in statelyworld/laravel-settings
Package laravel-settings
Short Description A minimal Laravel package to manage key-value settings. A global application settings management package for Laravel, similar to WordPress options
License MIT
Informations about the package laravel-settings
Laravel Settings Manager
A minimal and reusable Laravel package to store key-value settings in your database.
📦 Installation
Require the package via Composer:
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:
✅ What to Do After Installation?
1. Run Migrations
Option 1: Auto-Load Migrations (Recommended)
Run the following to create the settings
table:
Option 2: Publish Migration (Optional)
If you prefer to manage the migration file in your own project:
🚀 Usage Example
Set a Value
Get a Value
🧑💻 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
✅ Laravel Version Compatibility
Laravel Version | Supported |
---|---|
9.x | ✅ |
10.x | ✅ |
11.x | ✅ |
📝 License
This package is open-sourced software licensed under the MIT license.
🙏 Contributing
We welcome contributions. Please fork the repository, make changes, and submit a pull request.