PHPackages                             twosuperior/registry - 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. twosuperior/registry

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

twosuperior/registry
====================

Laravel Registry Manager for storing application specific settings

2.2.1(2mo ago)14.9k1MITPHPPHP &gt;=8.0.0

Since Sep 24Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (9)Versions (12)Used By (0)

Registry Manager
----------------

[](#registry-manager)

Laravel 4/5 Registry Manager for storing application specific settings. A mashup of  and . A big thanks to @Torann and @theelphie.

Thanks also to @srlabs for his blog on [Laravel 5 Package Development](http://stagerightlabs.com/blog/laravel5-pacakge-development-service-provider)

Installation for Laravel 5
--------------------------

[](#installation-for-laravel-5)

Add the following into your `composer.json` file:

```
{
	"require": {
		"twosuperior/registry": "2.0.x"
	}
}
```

Installation for Laravel 4
--------------------------

[](#installation-for-laravel-4)

Add the following into your `composer.json` file:

```
{
	"require": {
		"twosuperior/registry": "1.0.x"
	}
}
```

Post Install Setup for Laravel 5
--------------------------------

[](#post-install-setup-for-laravel-5)

Add the service provider and alias into your `app/config/app.php`

```
'providers' => [
	Twosuperior\Registry\RegistryServiceProvider::class,
],

'Registry' => Twosuperior\Registry\Facades\Registry::class,
```

Run `php artisan vendor:publish`

Post Install Setup for Laravel 4
--------------------------------

[](#post-install-setup-for-laravel-4)

Add the service provider and alias into your `app/config/app.php`

```
'providers' => array(
	'Twosuperior\Registry\RegistryServiceProvider',
),

'Registry' => 'Twosuperior\Registry\Facades\Registry',
```

Run `php artisan config:publish "twosuperior\registry"`

Run `php artisan migrate --package="twosuperior\registry"` to install the registry table

Usage
-----

[](#usage)

Retrieve item from registry

```
Registry::get('foo'); \\will return null if key does not exists
Registry::get('foo.bar'); \\will return null if key does not exists

Registry::get('foo', 'undefine') \\will return undefine if key does not exists
```

Store item into registry

```
Registry::set('foo', 'bar');
Registry::set('foo', array('bar' => 'foobar'));

Registry::get('foo'); \\bar
Registry::get('foo.bar'); \\foobar
```

Remove item from registry

```
Registry::forget('foo');
Registry::forget('foo.bar');
```

Clear cache and reload registry

```
Registry::clear();
```

Flush registry table

```
Registry::flush();
```

Dump all values from an item

```
Registry::dump('foo');
```

Retrieve all items from registry

```
Registry::all();
```

Mass update

```
$settings = Input::only('name', 'address', 'email');

Registry::store($settings);
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance93

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

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

Recently: every ~796 days

Total

10

Last Release

65d ago

Major Versions

1.0.1 → 2.0.02015-03-23

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.2.1PHP &gt;=8.0.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelregistrytwosuperior

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twosuperior-registry/health.svg)

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

###  Alternatives

[pragmarx/zipcode

A worldwide address-by-zipcode searcher.

10265.4k](/packages/pragmarx-zipcode)[torann/registry

Laravel registry manager for application configurations

222.0k](/packages/torann-registry)[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1311.0k1](/packages/efficiently-jquery-laravel)

PHPackages © 2026

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