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

ActiveLibrary

osaris-uk/app-settings
======================

Database settings package for Laravel

1.2.3(3y ago)0711PHPPHP ^7.0|^8.0

Since Mar 13Pushed 3y agoCompare

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

READMEChangelog (7)Dependencies (1)Versions (9)Used By (1)

Osaris UK - App Settings
========================

[](#osaris-uk---app-settings)

About
-----

[](#about)

This package integrates a simple way to store your Laravel app settings in your database.

After running the migrations, you are ready to start using the package.

*If your application does not support auto-discovery you will need to register the service provider in `config/app.php`:*

```
'providers' => [
    ...
    OsarisUk\AppSettings\AppSettingsServiceProvider::class,
]
```

Model
-----

[](#model)

The model for this package includes the mandatory field `key`, the `value` field is nullable. There are also several other optional fields included on this model to aid in creating a user interface, these fields are:

```
description // Nullable
type // Default = 'text'
validation_rules // Nullable
options // Nullable
group // Nullable

```

The only fields that are cached for use with the `setting()` helper are `key` &amp; `value`.

Helper
------

[](#helper)

This package includes a helper to access settings anywhere in your app using the defined key for your desired setting:

```
setting('app_name')
```

To update or create a new setting you can pass a value as the second argument:

```
setting('app_name', 'Pattern')
```

You can also directly access the class by passing no arguments through. This is useful to access the other methods on the model, for example:

```
setting()->getAllCachedSettings()
```

Available Methods
-----------------

[](#available-methods)

```
setting()->getAllCachedSettings() // Returns collection of all cached settings
setting()->settingExists($key) // Returns true / false
setting()->getCachedValue($key) // Returns setting value
setting()->setCachedValue($key, $value) // Returns new setting value
setting()->remove($key) // Returns true / false  (Sets value to null & soft deletes the record)
setting()::clearCache() // Returns true / false
```

The model watches for the `created`, `updated` &amp; `deleted` events and triggers `setting()::clearCache()` for each of these.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~245 days

Total

7

Last Release

1145d ago

PHP version history (2 changes)1.0PHP ^7.0.0

1.2.1PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c655f8ff1687b3f3a9156d917431f14c05dbc187e19e11201348c894afb35045?d=identicon)[osaris-uk](/maintainers/osaris-uk)

---

Top Contributors

[![john-dent](https://avatars.githubusercontent.com/u/24832003?v=4)](https://github.com/john-dent "john-dent (10 commits)")

### Embed Badge

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

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

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k3](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M449](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[rias/statamic-redirect

28298.4k](/packages/rias-statamic-redirect)

PHPackages © 2026

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