webdollar / webdollar-client-php
JSON-RPC 2.0 client for WebDollar
v1.5.0
2019-04-14 15:58 UTC
Requires
- php: >=7.1
- doctrine/collections: ^1.5
- graze/guzzle-jsonrpc: ^3.2
- nesbot/carbon: ^2.10
- symfony/finder: ^4.2
Requires (Dev)
- phpunit/phpunit: ^8.0|^7.0
README
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();