loaf/settings

Loaf Settings Plugin

0.2.0 2018-04-01 17:49 UTC

This package is auto-updated.

Last update: 2024-11-11 01:17:00 UTC


README

Build Status StyleCI

User-customizable settings for Loaf.

Usage

The package provides a facade for easy access to settings.

// Set a value
Settings::set('website.appearance.color', '#dbedff');

// Get a value
$value = Settings::get('website.appearance.color', $default_value);

Sections, Groups, Fields, Types and Models

Settings are categorized in sections that contain groups that contain fields. fields have a specific SettingType (type) with a corresponding database model.