PHPackages                             scriptingbeating/laravel-global-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. scriptingbeating/laravel-global-settings

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

scriptingbeating/laravel-global-settings
========================================

It stores all your laravel settings in database and provides a simple api to work with those settings. It also type cast your values into the specified format.

1.0(5y ago)03MITPHPPHP ^7.1

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ScriptingBeating/laravel-global-settings)[ Packagist](https://packagist.org/packages/scriptingbeating/laravel-global-settings)[ Docs](https://github.com/scriptingbeating/laravel-global-settings)[ RSS](/packages/scriptingbeating-laravel-global-settings/feed)WikiDiscussions master Synced 3w ago

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

Laravel Global Settings
=======================

[](#laravel-global-settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6d8b7239b760fa5be26c2c4c042a9b356dac20ed2506a4886245688a3389d87e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736372697074696e6762656174696e672f6c61726176656c2d676c6f62616c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scriptingbeating/laravel-global-settings)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)

It stores all your laravel settings in database and provides a simple api to work with those settings. It also type cast your values into the specified format.

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

[](#installation)

You can install the package via composer:

```
composer require scriptingbeating/laravel-global-settings
```

Publish the migration:

```
php artisan vendor:publish --provider="ScriptingBeating\GlobalSetting\GlobalSettingServiceProvider" --tag="migrations"
```

Run your migrations:

```
php artisan migrate
```

You will get a table `global_settings` in your database which mainly three columns `key` to store setting name, `value` to store setting value and `type` in which value should be type casted.

Supported Casting Type:

```
string
int or integer
bool or boolean
array
object
```

Usage
-----

[](#usage)

```
global_setting()->all();
global_setting($key); // global_setting('app_name');
global_setting()->get($key, $default = null);
global_setting()->set($key, $value);
global_setting()->set($key, $value, $type = 'string');
global_setting()->has($key);
global_setting()->remove($key);
```

Or You can also use `GlobalSetting` Facade.

```
GlobalSetting::all();
GlobalSetting::get($key, $default = null);
GlobalSetting::set($key, $value);
GlobalSetting::set($key, $value, $type = 'string');
GlobalSetting::has($key);
GlobalSetting::remove($key);
```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mohan Sharma](https://github.com/scriptingbeating)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2131d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26326571?v=4)[Mohan Sharma](/maintainers/ScriptingBeating)[@ScriptingBeating](https://github.com/ScriptingBeating)

---

Top Contributors

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

---

Tags

laravel global settingsscriptingbeatinglaravel-dynamic-settingslaravel-app-settings

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.5k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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