composer require bermudaphp/registry
Registry::set('message', 'Hello World');
Registry::getInstance()->offsetSet('message', 'Hello World!');
Registry::getInstance()['message'] = 'Hello, Jane!';
Registry::get('MessaGe', 'default value'); // default value
Registry::getInstance()->offsetGet('message'); // Hello, Jane!
Registry::getInstance()['message']; // Hello, Jane!;
Registry::has('appVersion'); // false
Registry::getInstance()->offsetExists('message'); // true
isset(Registry::getInstance()['message']); // true;
Registry::remove('message');
Registry::getInstance()->offsetUnset('message');
unset(Registry::getInstance()['message']);