webdollar / webdollar-client-php

WebDollar 的 JSON-RPC 2.0 客户端

v1.5.0 2019-04-14 15:58 UTC

This package is not auto-updated.

Last update: 2024-09-22 02:11:44 UTC


README

Build Status

安装

使用 Composer

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

使用方法

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

use WebDollar\Client\WebDollarClient;

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

$oClient->clientVersion();

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