PHP code example of hoa / registry
1. Go to this page and download the library: Download hoa/registry library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hoa / registry example snippets
Hoa\Register\Registry::set('foo', 'bar');
var_dump(
Hoa\Registry\Registry::get('foo'),
resolve('hoa://Library/Registry#foo')
);
/**
* Will output:
* string(3) "bar"
* string(3) "bar"
*/