Composer library for PHP applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost 80d4dc22e4 remove namespace requirement as related to parent 11 months ago
src remove namespace requirement as related to parent 11 months ago
.gitignore init composer 12 months ago
LICENSE Initial commit 12 months ago
README.md update readme 11 months ago
composer.json init composer 12 months ago

README.md

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);
        }
    }
}