PHPackages                             spaaleks/laragistry - 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. spaaleks/laragistry

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

spaaleks/laragistry
===================

Laragistry - a minimal Laravel key/value registry

1.0.0(4y ago)0167GPL-3.0-onlyPHP

Since Sep 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spaaleks/laragistry)[ Packagist](https://packagist.org/packages/spaaleks/laragistry)[ RSS](/packages/spaaleks-laragistry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laragistry - a minimal Laravel key/value registry
=================================================

[](#laragistry---a-minimal-laravel-keyvalue-registry)

This Package contains a minimal registry logic for your Laravel 7+/8+ application. The aim was to create a simple key/value provider for configuration purpose. For e.g. multi-domain applications, a `scope` can be used to separate entries.

This package does also work with the **Laravel MongoDB** driver from **Jens Segers** ([jenssegers/laravel-mongodb](https://github.com/jenssegers/laravel-mongodb))

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

[](#installation)

Install the package via composer.

```
composer require spaaleks/laragistry
```

Run the artisan migration command to create the laragistry table.

```
php artisan migrate
```

Usage
-----

[](#usage)

After installing, you can use the `Spaaleks\Laragistry\Laragistry` class or it's alias (`\Laragistry`) in your project. The scope argument is optional for every command.

MethodExamplesReturnsDescription**Create/update entry**

\\Laragistry::set(array $data, string $scope = null)`\Laragistry::set(['key', 'value']);`

`\Laragistry::set(['key', 'value'], 'default');`entry objectThis command will create a new entry or update a existing by key and scope.**Create/update multiple entries**

\\Laragistry::set(array $data, string $scope = null)`\Laragistry::set([`
 `['key1', 'value1'],`
 `['key2', 'value2']`
`]);`entry object or collection of entriesThe same *set* command can be used to create/update multiple entries by providing a multidimensional array.**Get a single entry or multiple entries**

\\Laragistry::get($data, string $scope = null)`\Laragistry::get('key');`

`\Laragistry::get(['key1', 'key2']);`

`\Laragistry::get('key_*');`

`\Laragistry::get(['key1_*', 'key2_*']);`entry object or collection of entriesGet a single entry or multiple entries by providden key(s).**Check**

\\Laragistry::check(string $key, string $scope = null)`\Laragistry::check('key1');`booleanThis command checks whether a key exists.**Get all in scope**

\\Laragistry::getByScope(string $scope)`\Laragistry::getByScope('my_scope');`collection of entriesReturn all key's in a scope.**Remove a single entry or multiple entries**

\\Laragistry::remove($data, string $scope = null)`\Laragistry::remove('key');`

`\Laragistry::remove(['key1', 'key2']);`booleanRemove a single entry or multiple entries by providden key(s).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

1708d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/spaaleks-laragistry/health.svg)

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

###  Alternatives

[bluerhinos/phpmqtt

Simple MQTT Class

790222.1k5](/packages/bluerhinos-phpmqtt)

PHPackages © 2026

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