PHPackages                             junaidnasir/globalsettings - 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. junaidnasir/globalsettings

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

junaidnasir/globalsettings
==========================

Laravel global settings, set/get global settings for your app

v0.1.1(10y ago)41.5k3[1 issues](https://github.com/junaidnasir/globalsettings/issues)MITPHPPHP &gt;=5.5.9

Since Apr 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/junaidnasir/globalsettings)[ Packagist](https://packagist.org/packages/junaidnasir/globalsettings)[ Docs](https://github.com/junaidnasir/globalsettings)[ RSS](/packages/junaidnasir-globalsettings/feed)WikiDiscussions master Synced today

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

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

[](#laravel-global-settings)

Global Settings package for laravel, to quickly retrieve and store settings data in DB.

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

[](#installation)

Begin by installing the package through Composer. Run the following command in your terminal:

```
composer require junaidnasir/globalsettings
```

add the package service provider in the providers array in `config/app.php`:

```
Junaidnasir\GlobalSettings\GlobalSettingsServiceProvider::class
```

you may add the facade access in the aliases array:

```
'GlobalSettings'  => Junaidnasir\GlobalSettings\Facades\GlobalSettings::class
```

publish the migration and config file:

```
php artisan vendor:publish"
```

migrate to create `global_settings` table

```
php artisan migrate
```

Usage
-----

[](#usage)

You can use ***facade accessor*** to retrieve the package controller. Examples:

```
GlobalSettings::set('allowUserSignUp',0);
GlobalSettings::set('userPostLimit',10);

// Get registration
if( GlobalSettings::get('allowUserSignUp'))
{
    //show form
}

// Post controller
if (count($user->post) >= GlobalSettings::get('userPostLimit'))
{
    // Can not create post limit reached
}
```

API
---

[](#api)

```
/* Set or update setting
*  $isActive is additional parameter
*  to quickly disable a setting without
*  having to delete the setting
*/
set($Setting, $Value, $isActive = true);

/* Get Settings
*  return value of setting
*  or default value provided
*/
get($Setting, $default = null);

/* check if setting exists
* return true if setting exists
* false otherwise
*/
has($Setting);

// Other Methods
update($setting, $value, $isActive);

isActive($setting);
activate($setting);
deactivate($setting);
delete($setting);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3729d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10703810?v=4)[Junaid Nasir](/maintainers/junaidnasir)[@junaidnasir](https://github.com/junaidnasir)

---

Top Contributors

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

---

Tags

laravelSettingsoptionsparameters

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/junaidnasir-globalsettings/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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