PHP code example of clean / registry

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

    

clean / registry example snippets


$registry = new Registry()

$registry->set('var1', 1);

$var1 = $registry->get('var1');

if ($registry->has('var1')) {
    ...
}

class MyClass {
	use \Clean\Registry\RegistryTrait;
}