Beartropy Settings
Manage dynamic application configuration stored in the database. Features a fluent API, intelligent caching, and a drop-in Livewire management interface.
composer
require
beartropy/settings
Simple Usage
1// Get a value with default 2$name = get_setting('general.site.name', 'My Application'); 3 4// Set a value 5set_setting('general.site.name', 'Beartropy App'); 6 7// Check if setting exists 8if (has_setting('notifications.email.enabled')) { 9 // Send notifications...10}11 12// Delete a setting13forget_setting('cache.temporary.token');
Why Beartropy Settings?
Database Driven
Store configuration in your database, allowing runtime updates without deployments.
Intelligent Caching
Settings are cached automatically to ensure your application remains blazing fast.
Livewire UI
Includes a beautiful, drop-in Livewire component to manage settings effortlessly.
Fluent API
Simple helper functions like get_setting(), set_setting(), and more for seamless integration.
Type Support
Supports strings, numbers, booleans, arrays, and JSON. Values are automatically cast when retrieved.