Download the PHP package sashalenz/laravel-settings-ui without Composer
On this page you can find all versions of the php package sashalenz/laravel-settings-ui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sashalenz/laravel-settings-ui
More information about sashalenz/laravel-settings-ui
Files in sashalenz/laravel-settings-ui
Package laravel-settings-ui
Short Description Declarative, nestable runtime settings for Laravel — fluent schema, pluggable stores, secure secrets, resilient cache, config() overlay and bundled admin UI.
License MIT
Homepage https://github.com/sashalenz/laravel-settings-ui
Informations about the package laravel-settings-ui
Laravel Settings UI
Declarative, nestable runtime settings for Laravel — fluent schema, pluggable stores, secure secrets, resilient cache, transparent config() overlay, and a bundled responsive admin UI built with Livewire and Tailwind CSS.
✨ Features
- Code-Authoritative Declarations: Settings are defined in strongly typed PHP classes, never in the database.
- Zero-Coupling
config()Overlay: Application code continues to readconfig('group.key')without any dependency on the settings machinery. - Deep Hierarchical Nesting: Groups, subgroups, cards, sections, and fields mirror full dotted paths (
group.section.key). - Pluggable Storage Backends: Database, Encrypted Database, File (JSON/YAML), and external Secret Stores (Vault, AWS Secrets Manager, etc.).
- Pluggable & Secure Secrets Engine:
- Masked values in HTML and Livewire states.
- Zero-plaintext leaks in logs and exception traces.
- Rate-limited and permission-gated "Click to Reveal" action.
- Resilient & Stampede-Protected Cache:
- Stores primitive values only (zero risk of
__PHP_Incomplete_Classserialization bugs). - Schema fingerprinting & version-stamped keys.
- Cache stampede prevention via cache locks.
- Queue worker / Octane auto-refresh hooks.
- Stores primitive values only (zero risk of
- Full Audit History & Revert:
- Automatically records user, timestamp, before/after values, and source.
- One-click rollback to prior versions.
- Modular & Domain Discovery:
- Register settings from packages, modules, or domains (
Settings::register(...)orSettings::discover(...)). - Composer
extra.laravel-settingsdiscovery.
- Register settings from packages, modules, or domains (
- Seeder Engine & CLI:
SettingsSeederfor idempotent seeding (syncMissing()andforceSync()).- Artisan commands:
settings:sync,settings:seed,settings:doctor,settings:clear-cache.
📦 Installation
Install via Composer:
Publish configuration and migrations:
🚀 Quick Start
1. Declare a Setting Schema
Create a schema class implementing DeclaresSettings:
2. Register the Schema
In your config/settings.php:
Or programmatically in any ServiceProvider:
3. Read Values Transparently
🔐 Secrets Management
Mark fields as secret to encrypt them and prevent plaintext exposure in forms and logs:
Supported Drivers:
encrypted-db: Encrypted locally in your database using Laravel'sAPP_KEY.env: Resolves from.envenvironment variables.vault: HashiCorp Vault KV v1/v2 engine.aws: AWS Secrets Manager.
🌱 Seeding Settings
Seed declared defaults safely without overwriting existing settings:
Or via Artisan CLI:
🖥 Admin UI
Mount the routes in your routes file (e.g., routes/web.php):
Available routes:
/admin/settings— List of setting groups/admin/settings/{group}— Group editor form/admin/settings/history— Audit change log & revert/admin/settings/schema— Read-only schema inspector
🧪 Testing
📄 License
The MIT License (MIT). Please see License File for more information.
Lists and repeaters
Use a list for strings, or a repeater for objects with declared child fields:
Both default to an empty array. The UI offers add, remove, move up, and move down
controls. itemLabel() accepts a literal or translation key followed by the row
number. Child defaults initialize new repeater rows. Schemas contain unique,
non-secret scalar fields; nested collections are not supported.
Collection rules include array and the configured item limits. Lists validate
each data.path.* as a string; repeater child rules use data.path.*.child.
Use rules() on a collection for additional array-level constraints. Empty
lists are allowed unless a minimum or required rule is declared.
Values persist as JSON arrays through the existing database/file stores and
remain PHP arrays in the config overlay. Removing or moving rows reindexes the
array. Collection defaults must be arrays. secret(), encrypted(), and
external secret bindings are not allowed on lists/repeaters.
The Livewire form actions addRow($path), removeRow($path, $index), and
moveRow($path, $from, $to) accept paths relative to the group (without data.).
All versions of laravel-settings-ui with dependencies
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/validation Version ^11.0|^12.0|^13.0
livewire/livewire Version ^3.5|^4.0
spatie/laravel-package-tools Version ^1.16|^1.17|^1.93