|
|
@ -12,8 +12,7 @@ To simply interact with Kevacoin API, use PHP library, e.g. |
|
|
|
|
|
|
|
|
|
|
|
`composer require kevachat/kevacoin` |
|
|
|
`composer require kevachat/kevacoin` |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` php |
|
|
|
|
|
|
|
|
|
|
|
// Connect kevacoin |
|
|
|
// Connect kevacoin |
|
|
|
$client = new \Kevachat\Kevacoin\Client( |
|
|
|
$client = new \Kevachat\Kevacoin\Client( |
|
|
|
$protocol, |
|
|
|
$protocol, |
|
|
@ -37,8 +36,8 @@ if ($meta = $client->kevaGet($namespace, '_CLITOR_IS_')) |
|
|
|
// Grab namespace records from blockchain |
|
|
|
// Grab namespace records from blockchain |
|
|
|
if ($pieces = $client->kevaFilter($namespace)) |
|
|
|
if ($pieces = $client->kevaFilter($namespace)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Implement your app logic |
|
|
|
// Implement your app logic |
|
|
|
echo $reader->data($pieces); |
|
|
|
echo $reader->data($pieces); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|