Back to Labs

O-Configs

A flexible database-backed configuration management system for Laravel applications.

composer require obelaw/o-configs
Docs GitHub

Overview

O-Configs provides a robust way to manage application settings that need to be editable at runtime. Unlike static config files, O-Configs stores values in the database, making it perfect for admin panels and user preferences.

Key Features

  • Database storage for configuration values
  • Support for grouped configurations
  • Caching support for high performance
  • Helper functions for easy access

Basic Usage

// Set a configuration value
o_config(['site_name' => 'My Awesome App']);

// Get a configuration value
$siteName = o_config('site_name');

// Get with default value
$theme = o_config('theme_color', 'blue');