Download the PHP package phpinnacle/settings without Composer
On this page you can find all versions of the php package phpinnacle/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpinnacle/settings
More information about phpinnacle/settings
Files in phpinnacle/settings
Package settings
Short Description Registry-driven application settings and user preferences for Laravel Filament.
License MIT
Homepage https://github.com/phpinnacle/settings
Informations about the package settings
Settings for Filament
Settings provides a registry-driven Filament settings page with groups, nested navigation and persistent values. It supports application settings through SettingsStorage and per-user preferences through the Preference model.
Features
- Multiple settings groups defined with fluent
Definitionobjects. - Filament schemas for each group and optional parent-child navigation.
- Central
DefinitionRegistrywith a deterministic default group. - Persistent setting sections loaded into typed settings objects.
- Per-user JSON preferences.
- Configurable user model, navigation and database connection.
Installation
Registering definitions
Definition::parent() groups a definition below another definition. A definition class may also provide its own form contract; the explicit schema() method is convenient for small groups.
Storage API
SettingsStorage exposes register(), fill(), load() and save() for application setting sections. Preference::get(), retrieve() and store() provide the equivalent user-scoped API. Values are stored as JSON and keyed by group and key.
Publish phpinnacle-settings-config to change navigation, connection or the authenticatable user model.
Testing
Changelog and license
See MIT License.
All versions of settings with dependencies
filament/filament Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.92