PHPackages                             owenbush/static-settings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. owenbush/static-settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

owenbush/static-settings
========================

An API for storing and retrieving static settings

2.1.0(1y ago)121.9k↑18.4%GPL-2.0-or-laterPHPPHP &gt;=8.1CI passing

Since Feb 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/owenbush/static-settings)[ Packagist](https://packagist.org/packages/owenbush/static-settings)[ RSS](/packages/owenbush-static-settings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (13)Used By (0)

Static Settings
===============

[](#static-settings)

[![Tests](https://github.com/owenbush/static-settings/actions/workflows/tests.yml/badge.svg)](https://github.com/owenbush/static-settings/actions/workflows/tests.yml)

A PHP library for managing static settings using a type-safe API with PHP 8.1+ enums.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require owenbush/static-settings
```

Usage
-----

[](#usage)

### 1. Define Your Setting Enum

[](#1-define-your-setting-enum)

First, create an enum that implements `BaseStaticSettingInterface`:

```
