PHP code example of dbeurive / registry

1. Go to this page and download the library: Download dbeurive/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/ */

    

dbeurive / registry example snippets


$value = 10;
dbeurive\Registry\Registry::register('YourEntry', $value);

$value = 10;
dbeurive\Registry\Registry::register('YourEntry', $value, true);

dbeurive\Registry\Registry::get('YourEntry');

$newValue = 20;
dbeurive\Registry\Registry::set('YourEntry', $newValue);

if (dbeurive\Registry\Registry::isRegistered('YourEntry')) { ... }

if (dbeurive\Registry\Registry::isConstant('YourEntry')) { ... }