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

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

dbeurive/registry
=================

This package contains a basic implementation for a registry.

1.0.0(10y ago)018MITPHP

Since Apr 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dbeurive/registry)[ Packagist](https://packagist.org/packages/dbeurive/registry)[ RSS](/packages/dbeurive-registry/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Description
===========

[](#description)

This package implements a simple registry.

Installation
============

[](#installation)

From the command line:

```
composer require dbeurive/tree

```

From your `composer.json` file:

```
{
    "require": {
        "dbeurive/tree": "1.0.*"
    }
}
```

API documentation
=================

[](#api-documentation)

The detailed documentation of the API can be extracted from the code by using [PhpDocumentor](https://www.phpdoc.org/). The file `phpdoc.xml` contains the required configuration for `PhpDocumentor`. To generate the API documentation, just move into the root directory of this package and run `PhpDocumentor` from this location.

Note:

> Since all the PHP code is documented using PhpDoc annotations, you should be able to exploit the auto completion feature from your favourite IDE. If you are using Eclipse, NetBeans or PhPStorm, you probably won’t need to consult the generated API documentation.

Synopsis
========

[](#synopsis)

Register an entry:

```
$value = 10;
dbeurive\Registry\Registry::register('YourEntry', $value);
```

Register an entry and declare it as constant:

```
$value = 10;
dbeurive\Registry\Registry::register('YourEntry', $value, true);
```

Get the value of a registered entry:

```
dbeurive\Registry\Registry::get('YourEntry');
```

Change the value of a registered entry:

```
$newValue = 20;
dbeurive\Registry\Registry::set('YourEntry', $newValue);
```

Test if an entry is registered:

```
if (dbeurive\Registry\Registry::isRegistered('YourEntry')) { ... }
```

Test if an entry is declared as constant:

```
if (dbeurive\Registry\Registry::isConstant('YourEntry')) { ... }
```

Examples
========

[](#examples)

Unit tests are good examples.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3713d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18211524?v=4)[Denis BEURIVE](/maintainers/dbeurive)[@dbeurive](https://github.com/dbeurive)

---

Top Contributors

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

---

Tags

registry

### Embed Badge

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

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

###  Alternatives

[sylius/registry

Services registry.

6111.5M54](/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)
