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

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

halimonalexander/registry
=========================

Registry library

v1.4.4(5y ago)050BSD-3-ClausePHPPHP ^7.4

Since Jun 8Pushed 5y agoCompare

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

READMEChangelogDependencies (6)Versions (13)Used By (0)

Registry
========

[](#registry)

Registry pattern library

[![main branch parameter](https://github.com/halimonalexander/registry/workflows/php/badge.svg)](https://github.com/halimonalexander/registry/workflows/php/badge.svg)

Install
-------

[](#install)

```
$ composer require halimonalexander/registry
```

Example of usage
----------------

[](#example-of-usage)

```
use HalimonAlexander\Registry\Registry;

$registry = Registry::getInstance();

$registry->set('key1', 1);
//...
if ($registry->has('key1')) {
    $var = $registry->get('key1');
}

$registry->set('db', new \PDO());
//...
/** @var \PDO|null $db */
$db = $registry->getByClassname(\PDO::class);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

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

Recently: every ~1 days

Total

12

Last Release

1909d ago

PHP version history (2 changes)v1.0PHP ^7.2

v1.4PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33194347?v=4)[Alexander Halimon](/maintainers/halimonalexander)[@halimonalexander](https://github.com/halimonalexander)

---

Top Contributors

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

---

Tags

registry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/registry

Services registry.

6211.0M40](/packages/sylius-registry)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

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