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 2mo 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 54% 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

3333d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0dc010eef4e76d1eb705b4f2257422302ada2164add753976f7998d9203b19a?d=identicon)[sinclairt](/maintainers/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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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