PHP code example of decodelabs / iota

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

    

decodelabs / iota example snippets


use DecodeLabs\Iota;

// Load manually
$repo = Iota::load('name', '/path/to/repo');

// Load an app-level repository only writable in dev mode
$repo = Iota::loadStatic('name');

// Load a writable app-level repository
$repo = Iota::loadDynamic('name');

// Store anything
$repo->store(
    'key',
    <<<'PHP'
    
    return 'Hello, world!';
    PHP
);

// Retrieve code
$code = $repo->fetch('key');

// Include quietly
$repo->