PHPackages                             sinclairt/settingable - 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. [Database &amp; ORM](/categories/database)
4. /
5. sinclairt/settingable

ActiveLibrary[Database &amp; ORM](/categories/database)

sinclairt/settingable
=====================

Store settings for an app or resource in the database

1.0.6(9y ago)08MITPHP

Since Sep 22Pushed 9y agoCompare

[ Source](https://github.com/sinclairt/settingable)[ Packagist](https://packagist.org/packages/sinclairt/settingable)[ RSS](/packages/sinclairt-settingable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Settable
========

[](#settable)

### Installation

[](#installation)

- Run `composer require sinclairt/settable`.
- Register `Sinclair\Settable\SettableServiceProvider::class` in `config\app.php` inside the `providers` array.
- Run `composer dump-autoload`
- Run `php artisan vendor:publish`. This wil publish the migration for the settings.
- Run `php artisan migrate`

### Usage

[](#usage)

Settings can be global or resource specific, for global settings, the `$myObject` in the examples below can be omitted or set to null, otherwise include the object whose setting you need.

##### Get

[](#get)

Shorthand: `setting('some_key')` *will return the 'some\_key' value. This will only return global settings, use the alternative method for resource settings*

Alternative: `app('Settable')->get('some_key', $myObject, 'my_default')` or `setting()->get(...)`

It will check whether the value is a callback and return the value of the callback.

##### Set

[](#set)

Shorthand: `setting(['some_key', 'some_value', $myObject])` *will set the 'some\_key' key to 'some\_value' and return boolean.*

Alternative: `app('Settable')->set('some_key', 'my_value', $myObject)` or `setting()->set(...)`

##### Exists

[](#exists)

`app('Settable')->exists('some_key', $myObject)` or `setting()->exists(...)`*returns boolean*

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

Recently: every ~46 days

Total

6

Last Release

3381d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16877448?v=4)[Tom Sinclair](/maintainers/sinclairt)[@sinclairt](https://github.com/sinclairt)

---

Top Contributors

[![sinclairt](https://avatars.githubusercontent.com/u/16877448?v=4)](https://github.com/sinclairt "sinclairt (2 commits)")[![tom-sinclair](https://avatars.githubusercontent.com/u/23167798?v=4)](https://github.com/tom-sinclair "tom-sinclair (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinclairt-settingable/health.svg)

```
[![Health](https://phpackages.com/badges/sinclairt-settingable/health.svg)](https://phpackages.com/packages/sinclairt-settingable)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M114](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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