live-controls/easy-settings

There is no license information available for the latest version (v1.1.0) of this package.

Simple settings library for easily accessable configurations

Maintainers

Package info

github.com/live-controls/easy-settings

pkg:composer/live-controls/easy-settings

Statistics

Installs: 21

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-03-01 03:28 UTC

This package is auto-updated.

Last update: 2026-03-01 03:48:19 UTC


README

Simple settings library for easily accessable configurations

Setup

  1. Publish migrations
php artisan vendor:publish livecontrols.easy_settings.migrations
  1. Migrate
php artisan migrate

Usage

Set settings

This will set a specific value (can be any json compatible value) to a specific key. This will also update a value if it already exists.

\LiveControls\EasySettings\EasySettings::set('key', 'value');

Get settings

This will get a specific value and stores it to the cache if set.

\LiveControls\EasySettings\EasySettings::get('key', 'default', 120); //Will return a string 'default' if value can't be found and stores it for 120 seconds

Forget settings

This will remove the setting with the specific key from the cache.

\LiveControls\EasySettings\EasySettings::forget('key');

Delete settings

This will delete the setting with the specific key from the database and cache.

\LiveControls\EasySettings\EasySettings::delete('key');