PHPackages                             jobmetric/global-variable - 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. jobmetric/global-variable

ActiveLibrary

jobmetric/global-variable
=========================

It is a package for using organized variables throughout Laravel, which can use the created variables everywhere in Laravel.

1.0.13(2y ago)173142MITJavaScriptPHP &gt;=8.0.1

Since Jan 16Pushed 2y ago3 watchersCompare

[ Source](https://github.com/jobmetric/global-variable)[ Packagist](https://packagist.org/packages/jobmetric/global-variable)[ RSS](/packages/jobmetric-global-variable/feed)WikiDiscussions master Synced 1mo ago

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

Global Variable for laravel
===========================

[](#global-variable-for-laravel)

It is a package for using organized variables throughout Laravel, which can use the created variables everywhere in Laravel.

Install via composer
--------------------

[](#install-via-composer)

Run the following command to pull in the latest version:

```
composer require jobmetric/global-variable
```

### Add service provider

[](#add-service-provider)

Add the service provider to the providers array in the config/app.php config file as follows:

```
'providers' => [

    ...

    JobMetric\GlobalVariable\Providers\GlobalVariableServiceProvider::class,
]
```

### Publish the config

[](#publish-the-config)

Copy the `config` file from `vendor/jobmetric/global-variable/config/config.php` to `config` folder of your Laravel application and rename it to `global-variable.php`

Run the following command to publish the package config file:

```
php artisan vendor:publish --provider="JobMetric\GlobalVariable\Providers\GlobalVariableServiceProvider" --tag="config"
```

You should now have a `config/global-variable.php` file that allows you to configure the basics of this package.

### Publish Assets

[](#publish-assets)

To use the plugins used in this package, the following command must be executed.

```
php artisan vendor:publish --provider="JobMetric\GlobalVariable\Providers\GlobalVariableServiceProvider" --tag="public"
```

### Publish Views

[](#publish-views)

You can use predefined views in this package.

```
php artisan vendor:publish --provider="JobMetric\GlobalVariable\Providers\GlobalVariableServiceProvider" --tag="views"
```

### Publish Migrations

[](#publish-migrations)

You need to publish the migration to create the `settings` table:

```
php artisan vendor:publish --provider="JobMetric\GlobalVariable\Providers\GlobalVariableServiceProvider" --tag="migrations"
```

After that, you need to run migrations.

```
php artisan migrate
```

Documentation
-------------

[](#documentation)

### Document object

[](#document-object)

After publishing the `view`, you have a `layout.blade.php` file in the folder `resources/views/vendor/global-variable` where all your `views` should be extended from.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~31 days

Recently: every ~85 days

Total

14

Last Release

806d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b00d08bd4b0b765ee2d33719a535e6cb49c04fb945078a0809d5c05e6f16ee96?d=identicon)[majidmohammadian](/maintainers/majidmohammadian)

---

Top Contributors

[![MajidMohammadian](https://avatars.githubusercontent.com/u/2099965?v=4)](https://github.com/MajidMohammadian "MajidMohammadian (66 commits)")[![cyber-manager](https://avatars.githubusercontent.com/u/119158486?v=4)](https://github.com/cyber-manager "cyber-manager (6 commits)")

### Embed Badge

![Health badge](/badges/jobmetric-global-variable/health.svg)

```
[![Health](https://phpackages.com/badges/jobmetric-global-variable/health.svg)](https://phpackages.com/packages/jobmetric-global-variable)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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