2017 © Pedro Peláez
 

library registry

Simple registry pattern implementation

image

clean/registry

Simple registry pattern implementation

  • Thursday, March 17, 2016
  • by romannowicki
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6,306 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Clean\Registry

Build Status Code Climate Test Coverage Issue Count, (*1)

Basic implementation of registry pattern that implement a central storage for objects often used throughout the application., (*2)

Installation

via Composer:, (*3)

"require": {
  "clean/registry": "*"
}

Example of Usage

$registry = new Registry()

$registry->set('var1', 1);

$var1 = $registry->get('var1');

if ($registry->has('var1')) {
    ...
}

or you can extend any class with ReigistryTrait to add registry methods to it, (*4)

class MyClass {
    use \Clean\Registry\RegistryTrait;
}

The Versions

17/03 2016

dev-master

9999999-dev

Simple registry pattern implementation

  Sources   Download

MIT

The Development Requires

registry

09/11 2015

1.0.1

1.0.1.0

Simple registry pattern implementation

  Sources   Download

MIT

The Development Requires

registry

06/11 2015

1.0.0

1.0.0.0

Simple registry pattern implementation

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

registry