PHPackages                             vaibhavpandeyvpz/laravel-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. [Caching](/categories/caching)
4. /
5. vaibhavpandeyvpz/laravel-settings

ActiveLibrary[Caching](/categories/caching)

vaibhavpandeyvpz/laravel-settings
=================================

Small library to implement cache-able settings into Laravel projects.

1.1.3(3y ago)121MITPHPPHP &gt;=7.1

Since Dec 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vaibhavpandeyvpz/laravel-settings)[ Packagist](https://packagist.org/packages/vaibhavpandeyvpz/laravel-settings)[ RSS](/packages/vaibhavpandeyvpz-laravel-settings/feed)WikiDiscussions main Synced 2w ago

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

laravel-settings
================

[](#laravel-settings)

Yet another but rather small library to implement cache-able settings into [Laravel](https://laravel.com/) projects, supports Laravel 5 and above.

### Installation

[](#installation)

```
composer require vaibhavpandeyvpz/laravel-settings
```

#### Laravel &lt; 5.5

[](#laravel--55)

Once the package is installed, open your `app/config/app.php` configuration file and locate the `providers` key. Add the following line to the end:

```
Laravel\Settings\SettingsServiceProvider::class
```

Next, locate the `aliases` key and add the following line:

```
'Settings' => Laravel\Settings\SettingsFacade::class,
```

You can also publish the default configuration and migration using below command:

```
$ php artisan vendor:publish
```

### Usage

[](#usage)

You can use either of `settings` helper or `Settings` facade to access the settings.

```
# store a value
Settings::put('foo', 'bar');
settings(['foo' => 'bar']);
settings()->put('foo', 'bar');
settings('foo', 'bar');

settings()->put('foo', 'bar', false); // don't update in database yet
settings()->commit(); // save to database when you want

# retrieve a value
Settings::get('foo');
settings()->get('foo');
settings('foo');

# retrieve all values
Settings::all();
settings()->all();

# delete a value
Settings::forget('foo');
settings()->forget('foo');

settings()->forget('foo', false); // don't delete from database yet
settings()->commit(); // delete from database when you want
```

### Caching

[](#caching)

The package can also cache stored settings for better performance. To cache the settings, run below command:

```
$ php artisan settings:cache
```

To clear cached settings anytime, use below command:

```
$ php artisan settings:clear
```

### License

[](#license)

See [LICENSE](LICENSE) file.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

6

Last Release

1335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cf0d090043e41bf330d9ef1d0e7e799f1946145ddb3569ba38a003d47929378?d=identicon)[vaibhavpandeyvpz](/maintainers/vaibhavpandeyvpz)

---

Top Contributors

[![vaibhavpandeyvpz](https://avatars.githubusercontent.com/u/6647172?v=4)](https://github.com/vaibhavpandeyvpz "vaibhavpandeyvpz (7 commits)")

### Embed Badge

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

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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