Another PHP implementation of the registry pattern
By Packagist
cd <your project>
composer require 'lebr1/php-registry:dev-master'
$registry = Lebr1\Registry\ArrayRegistry::getInstance();
$registry->set('person','John Doe');
$person = $registry->get('person');
if ($registry->has('person')) {
...
}