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 f913b7e19b update protocol API to 1.3.0 @TODO fileMime, fileSize, fileName 3 weeks ago
src update protocol API to 1.3.0 @TODO fileMime, fileSize, fileName 3 weeks ago
.gitignore init composer 6 months ago
LICENSE Initial commit 6 months ago
README.md update protocol API to 1.3.0 @TODO fileMime, fileSize, fileName 3 weeks ago
composer.json init composer 6 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 ($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);
    }
}