library registry
Simple registry pattern implementation
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
Clean\Registry
, (*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;
}
dev-master
9999999-dev
Simple registry pattern implementation
Sources
Download
MIT
The Development Requires
registry
1.0.1
1.0.1.0
Simple registry pattern implementation
Sources
Download
MIT
The Development Requires
registry
1.0.0
1.0.0.0
Simple registry pattern implementation
Sources
Download
MIT
The Requires
The Development Requires
registry