mirror of
https://github.com/clitor-is-protocol/kevacoin-php.git
synced 2025-02-10 22:14:17 +00:00
add code highlight
This commit is contained in:
parent
d0f18f2956
commit
1f02662748
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user