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

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

eden/registry
=============

Eden registry component

4.0.2(9y ago)08.6k1MITPHPPHP &gt;=5.4.1

Since Sep 25Pushed 9y ago12 watchersCompare

[ Source](https://github.com/Eden-PHP/Registry)[ Packagist](https://packagist.org/packages/eden/registry)[ Docs](http://eden-php.com)[ RSS](/packages/eden-registry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (1)

[![logo](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67)](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67) Eden Registry
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-eden-registry)

[![Build Status](https://camo.githubusercontent.com/952aecfc83ae24b562a36bf0978211f148b0cd023cb1c84b1715c0b7ecf5463b/68747470733a2f2f6170692e7472617669732d63692e6f72672f4564656e2d5048502f52656769737472792e737667)](https://travis-ci.org/Eden-PHP/Registry)
==============================================================================================================================================================================================================================================================

[](#)

- [Install](#install)
- [Introduction](#intro)
- [API](#api)
    - [get](#get)
    - [getArray](#getArray)
    - [isKey](#isKey)
    - [remove](#remove)
    - [set](#set)
- [Contributing](#contributing)

====

Install
-------

[](#install)

`composer install eden/registry`

====

Enable Eden
-----------

[](#enable-eden)

The following documentation uses `eden()` in its example reference. Enabling this function requires an extra step as descirbed in this section which is not required if you access this package using the following.

```
Eden\Registry\Index::i();

```

When using composer, there is not an easy way to access functions from packages. As a workaround, adding this constant in your code will allow `eden()` to be available after.

```
Eden::DECORATOR;

```

For example:

```
Eden::DECORATOR;

eden()->inspect('Hello World');

```

====

Introduction
------------

[](#introduction)

Instantiate registry in this manner.

```
$registry = eden('registry');

```

====

API
---

[](#api)

====

### get

[](#get)

Gets a value given the path in the registry.

#### Usage

[](#usage)

```
eden('registry')->get(scalar[, scalar..] $key);

```

#### Parameters

[](#parameters)

- `scalar[, scalar..] $key` - The registry path; yea i know this is wierd

Returns `mixed`

#### Example

[](#example)

```
eden('registry')->get('foo', 'bar');

```

====

### getArray

[](#getarray)

Returns the raw array recursively

#### Usage

[](#usage-1)

```
eden('registry')->getArray(bool $modified);

```

#### Parameters

[](#parameters-1)

- `bool $modified` - whether to return the original data

Returns `array`

#### Example

[](#example-1)

```
eden('registry')->getArray();

```

====

### isKey

[](#iskey)

Checks to see if a key is set

#### Usage

[](#usage-2)

```
eden('registry')->isKey(*scalar[,scalar..] $key);

```

#### Parameters

[](#parameters-2)

- `*scalar[, scalar..] $key` - The registry path; yea i know this is wierd

Returns `bool`

#### Example

[](#example-2)

```
eden('registry')->isKey('foo', 'bar');

```

====

### remove

[](#remove)

Removes a key and everything associated with it

#### Usage

[](#usage-3)

```
eden('registry')->remove(*scalar[,scalar..] $key);

```

#### Parameters

[](#parameters-3)

- `*scalar[,scalar..] $key` - The registry path; yea i know this is wierd

Returns `Eden\Registry\Index`

#### Example

[](#example-3)

```
eden('registry')->remove('foo', 'bar');

```

====

### set

[](#set)

Creates the name space given the space and sets the value to that name space

#### Usage

[](#usage-4)

```
eden('registry')->set(*scalar[,scalar..] $key, *mixed $value);

```

#### Parameters

[](#parameters-4)

- `*scalar[,scalar..] $key` - The registry path; yea i know this is wierd
- `*mixed $value` - The value to set

Returns `Eden\Registry\Index`

#### Example

[](#example-4)

```
eden('registry')->set('foo', 'bar', 'zoo');

```

====

\#Contributing to Eden

Contributions to *Eden* are following the Github work flow. Please read up before contributing.

\##Setting up your machine with the Eden repository and your fork

1. Fork the repository
2. Fire up your local terminal create a new branch from the `v4` branch of your fork with a branch name describing what your changes are. Possible branch name types:
    - bugfix
    - feature
    - improvement
3. Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")

\##Making pull requests

1. Please ensure to run `phpunit` before making a pull request.
2. Push your code to your remote forked version.
3. Go back to your forked version on GitHub and submit a pull request.
4. An Eden developer will review your code and merge it in when it has been classified as suitable.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3577d ago

Major Versions

1.0.2 → 4.0.12015-10-13

PHP version history (2 changes)1.0.2PHP &gt;=5.3.1

4.0.1PHP &gt;=5.4.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120378?v=4)[Christian Blanquera](/maintainers/cblanquera)[@cblanquera](https://github.com/cblanquera)

---

Top Contributors

[![clark21](https://avatars.githubusercontent.com/u/5639521?v=4)](https://github.com/clark21 "clark21 (3 commits)")

---

Tags

libraryeden

### Embed Badge

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

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[eden/mail

Eden POP3, IMAP and SMTP component

178273.4k1](/packages/eden-mail)[eden/core

Eden Core component full of secret sauce

14415.0k33](/packages/eden-core)[eden/sqlite

Eden SQLite Search, Collection, Model ORM componen

209.2k2](/packages/eden-sqlite)

PHPackages © 2026

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