loaf/settings

Loaf Settings Plugin

Maintainers

Details

github.com/loafcms/settings

Source

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

pkg:composer/loaf/settings

0.2.0 2018-04-01 17:49 UTC

This package is auto-updated.

Last update: 2025-10-11 03:27:18 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.