1.0.3 2024-01-20 00:19 UTC

This package is auto-updated.

Last update: 2024-09-03 20:46:26 UTC


README

PHP应用程序的Composer库

安装

composer require clitor-is-protocol/kevacoin

示例

要简单地与Kevacoin API交互,使用PHP库,例如:

composer require kevachat/kevacoin

// Connect kevacoin
$client = new \Kevachat\Kevacoin\Client(
    $protocol,
    $host,
    $port,
    $username,
    $password
);

// Get meta data by namespace
if ($client->kevaGet($namespace, '_CLITOR_IS_'))
{
    // Init reader with meta data received
    $reader = new \ClitorIsProtocol\Kevacoin\Reader;

    // Get namespace records from blockchain
    if ($pieces = $client->kevaFilter($namespace))
    {
        // Implement app logic
        echo $reader->data($pieces);
    }
}