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.

38 lines
725 B

11 months ago
# kevacoin-php
11 months ago
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`
``` php
11 months ago
// Connect kevacoin
$client = new \Kevachat\Kevacoin\Client(
$protocol,
$host,
$port,
$username,
$password
);
// Get meta data by namespace
if ($client->kevaGet($namespace, '_CLITOR_IS_'))
11 months ago
{
// Init reader with meta data received
$reader = new \ClitorIsProtocol\Kevacoin\Reader;
11 months ago
// Get namespace records from blockchain
if ($pieces = $client->kevaFilter($namespace))
11 months ago
{
// Implement app logic
echo $reader->data($pieces);
11 months ago
}
}
```