Skip to content

WebDollar/webdollar-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebDollar PHP client for JSON-RPC API

Build Status

Installation

With Composer

$ composer require webdollar/webdollar-client-php
{
    "require": {
        "webdollar/webdollar-client-php": "^1.0"
    }
}

Usage

<?php
require 'vendor/autoload.php';

use WebDollar\Client\WebDollarClient;

$oClient = WebDollarClient::factory([
    'url'   => 'http://localhost:3333',
    'auth'  => ['username', 'password'],
    'debug' => FALSE,
]);

$oClient->clientVersion();

// or async version which will return a promise
$oClient->clientVersionAsync();