PHPackages                             shipu/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shipu/settings

ActivePackage[Utility &amp; Helpers](/categories/utility)

shipu/settings
==============

Settings is persistent settings in laravel

v1.2(7y ago)61811MITPHP

Since Sep 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Shipu/settings)[ Packagist](https://packagist.org/packages/shipu/settings)[ Docs](http://shipuahamed.com)[ RSS](/packages/shipu-settings/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Settings
========

[](#settings)

Persistent settings in Laravel

### Features

[](#features)

- Settings

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

[](#installation)

Setting is a Laravel package so you can install it via Composer. Run this command in your terminal from your project directory:

```
composer require shipu/settings
```

Now run this command in your terminal to publish this package resources:

```
php artisan vendor:publish --provider="Shipu\Settings\Providers\SettingsServiceProvider"

```

If you run `vendor:publish` then you have add below code in your settings model

```
protected $table = 'site_settings'; // you can change your database table name.
public $timestamps = false;
```

Use Traits
----------

[](#use-traits)

Use `GetSettings` traits in your model.

API List
--------

[](#api-list)

- [getAll](https://github.com/shipu/settings#getAll)
- [set](https://github.com/shipu/settings#set)
- [get](https://github.com/shipu/settings#get)
- [has](https://github.com/shipu/settings#has)
- [forget](https://github.com/shipu/settings#current)

### getAll

[](#getall)

For getting all settings value paired by key you can use `all` method.

```
YourSettingModel::getAll(); // return collection
```

### set

[](#set)

For set value you can use `set` method.

```
YourSettingModel::set('key', 'value'); // return null
```

Multiple data store by key

```
YourSettingModel::set(['key1' => 'value', 'key2' => ['subkey2' => 'value-of-subkey2'] ]); // return null
```

### get

[](#get)

For get value you can use `get` method.

```
YourSettingModel::get('key'); // return collection or string or null
```

Fallback Support:

```
YourSettingModel::get('key2.subkey2'); // return collection or string or null
```

You can also getting all setting value

```
YourSettingModel::get(); // return collection
```

### has

[](#has)

For checking key exists or not you can use `has` method.

```
YourSettingModel::has('key'); // return bool
```

Multiple key Forget:

```
YourSettingModel::has(['key1', 'key2']); // return collection
```

### forget

[](#forget)

For delete key you can use `forget` method.

```
YourSettingModel::forget('key'); // return integer 0 or 1
```

Multiple key Forget:

```
YourSettingModel::forget(['key1', 'key2']); // return interger - how many key successfully delete.
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

3

Last Release

2669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91fdb46a4f45685ae0d448fbc943b1e4a662b56864b17224a65d14c92ee4e247?d=identicon)[shipu](/maintainers/shipu)

---

Top Contributors

[![Shipu](https://avatars.githubusercontent.com/u/4118421?v=4)](https://github.com/Shipu "Shipu (10 commits)")

---

Tags

laravelsettingslaravelSettingslumen

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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