PHP code example of evaneos / gringotts-sdk

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

    

evaneos / gringotts-sdk example snippets


$gringotts = new GringottsClient('http://your-gringotts-instance.com');

$gringotts = new GringottsClient('http://your-gringotts-instance.com');

$assetId = $gringotts->store('Some data as string');


$assetId = $gringotts->storeWithId('871CDC92-A75B-43E7-A38E-FC22AA5450CA', 'Some data as string');


$gringotts = new GringottsClient('http://your-gringotts-instance.com');

$asset = $gringotts->get('871CDC92-A75B-43E7-A38E-FC22AA5450CA');