2024-06-03 23:17:51 +03:00
2024-01-20 02:19:57 +02:00
2023-12-13 19:25:15 +02:00
2023-12-13 19:25:15 +02:00
2023-12-13 19:21:57 +02:00
2024-06-03 23:17:51 +03:00

kevacoin-php

Composer library for PHP applications

Install

composer require clitor-is-protocol/kevacoin

Examples

To simply interact with Kevacoin API, use PHP library, e.g.

composer require kevachat/kevacoin

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

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

    // Recommended to check the meta is valid
    if ($reader->valid())
    {
        // Grab namespace records from blockchain
        if ($pieces = $client->kevaFilter($namespace))
        {
            // Implement your app logic
            echo $reader->data($pieces);
        }
    }
}
Description
Composer library for PHP applications
Readme MIT 43 KiB
Languages
PHP 100%