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

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

ianstudios/settings
===================

This package adds application wide (key:value) settings stored in your database.

v1.0.1(10mo ago)0321MITPHPPHP ^8.0

Since Aug 26Pushed 10mo agoCompare

[ Source](https://github.com/ianzcreative/settings)[ Packagist](https://packagist.org/packages/ianstudios/settings)[ Docs](https://github.com/ianzcreative/settings)[ RSS](/packages/ianstudios-settings/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (3)Used By (1)

Settings
========

[](#settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6767fbaadda49f9eef87ac3cae6d17b9aa96703394d86ebf9d2bf86fc8b43725/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69616e73747564696f732f73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ianstudios/settings)[![Total Downloads](https://camo.githubusercontent.com/53e0594753b1e1ac4afab8818b0b45273e3f2bfc7a501dfa02ab4a755a22800a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69616e73747564696f732f73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ianstudios/settings)

This package adds application wide settings stored in your database.

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

[](#installation)

You can install the package via composer:

```
composer require ianstudios/settings
```

Run the install command:

```
php artisan settings:install
```

Usage
-----

[](#usage)

### Saving settings

[](#saving-settings)

You can save settings using the helper function `setting()`:

```
setting(['key' => 'value']);
```

You can also save multiple settings at once:

```
setting([
    'general.key1' => 'value1',
    'general.key2' => 'value2',
]);

// Returns
[
    'general.key1' => 'value1',
    'general.key2' => 'value2',
]
```

### Retrieving settings

[](#retrieving-settings)

You can retrieve settings using the helper function `setting()`:

```
setting(string $key, mixed $default = null);

// Example
setting('key', 'default');

// Returns
'value' // or 'default' if the key does not exist
```

The key can be a dot-notation key to retrieve nested settings:

```
setting('general.key1');

// Returns
'value1'
```

If you have multiple settings with the same parent key, you can retrieve them all at once:

```
setting('general');

// Returns
[
    'key1' => 'value1',
    'key2' => 'value2',
]
```

You can also retrieve all settings at once:

```
setting('*');

// Returns
[
    'key' => 'value',
    'general' => [
        'key1' => 'value1',
        'key2' => 'value2',
    ],
]
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance54

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Total

2

Last Release

311d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43441070?v=4)[Ian](/maintainers/ianstudios)[@ianstudios](https://github.com/ianstudios)

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[binaryk/laravel-restify

Laravel REST API helpers

677415.0k](/packages/binaryk-laravel-restify)[mozex/laravel-scout-bulk-actions

Import, flush, and queue-import all your Laravel Scout searchable models at once. Auto-discovers models, runs in bulk, tracks progress.

1539.3k](/packages/mozex-laravel-scout-bulk-actions)[slimani/filament-media-manager

A media manager plugin for Filament.

126.9k](/packages/slimani-filament-media-manager)

PHPackages © 2026

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