PHPackages                             jaeger-app/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. jaeger-app/settings

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

jaeger-app/settings
===================

A settings abstraction.

0.1.2(9y ago)04152MITPHPPHP &gt;=5.4.0

Since Apr 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jaeger-app/settings)[ Packagist](https://packagist.org/packages/jaeger-app/settings)[ RSS](/packages/jaeger-app-settings/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (4)Used By (2)

Jaeger Settings
===============

[](#jaeger-settings)

[![Build Status](https://camo.githubusercontent.com/492423266731b2f1c69f03788c3d670f89e6b6875b9c675429712cc0385fb365/68747470733a2f2f7472617669732d63692e6f72672f6a61656765722d6170702f73657474696e67732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jaeger-app/settings)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a8b8316b255cf47e908055bd37ae716d2538cbe087c581cc93c4e3282accf268/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a61656765722d6170702f73657474696e67732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jaeger-app/settings/?branch=master)[![Author](https://camo.githubusercontent.com/125fbdac4bce1d0b560eb4a34b10e11849db5b79150219c1118cac66a4630297/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d697468726136322d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/mithra62)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/jaeger-app/bootstrap/master/LICENSE)

Jaeger Settings is an abstract object to manage storage of your plugin settings.

> Note that you're NOT meant to instantiate this object; you have to extend it and apply your specific settings before you can get started.

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

[](#installation)

Add `jaeger-app/settings` as a requirement to your `composer.json`:

```
$ composer require jaeger-app/settings
```

Once that's done, you'll have to install the database schema located at data\\settings\_table.sql

Simple Example
--------------

[](#simple-example)

In your parent object, ensure you extend have 2 properties, `$table` and `$_defaults`. `$table` should be the name of your settings table, and `$_defaults` is a key =&gt; value array of your plugin's settings and a default value for each.

You'll also have to define a method named `validate(array $data, array $extra = array())` that accepts the settings data and returns an array of errors on failure.

```
class MyPluginSettings extends \JaegerApp\Settings
{
    /**
     * The name of the settings storage table
     *
     * @var string
     */
    protected $table = 'my_plugin_settings';

    /**
     * The accepted settings with a default value
     *
     * @var array
     */
    protected $_defaults = array(
        'key1' => 'value1',
        'key2' => 'value2',
	);

    public function __construct($db, $lang)
    {
        parent::__construct($db, $lang);
		$this->setTable($this->table);
		$this->setTable($this->table);
    }

    public function validate(array $data, array $extra = array())
    {}
}
```

Advanced Usage
--------------

[](#advanced-usage)

`JaegerApp\Settings` includes the following capabilities:

1. Configuration Overrides
2. Encrypting data on storage
3. Convert new line strings into arrays
4. Allow for custom values
5. Serialize arrays on storage

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Total

3

Last Release

3647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/042722642fab9b3e2f7b0711428b40053a2be0d6a1b752e50e7a7fffd06fb712?d=identicon)[mithra62](/maintainers/mithra62)

---

Top Contributors

[![eric-lamb62](https://avatars.githubusercontent.com/u/1008036?v=4)](https://github.com/eric-lamb62 "eric-lamb62 (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaeger-app-settings/health.svg)

```
[![Health](https://phpackages.com/badges/jaeger-app-settings/health.svg)](https://phpackages.com/packages/jaeger-app-settings)
```

###  Alternatives

[moderntribe/tribe-libs

A library for use on Modern Tribe service projects.

1349.4k2](/packages/moderntribe-tribe-libs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
