2017 © Pedro Peláez
 

library lnd-client

A LND REST Client

image

lightningsale/lnd-client

A LND REST Client

  • Thursday, April 19, 2018
  • by Richard87
  • Repository
  • 3 Watchers
  • 4 Stars
  • 55 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 8 Versions
  • 6 % Grown

The README.md

A LND Client for PHP

TODO:

  • Create a gRPC Client
  • An Async Rest Client using Proxy Objects (http://ocramius.github.io/ProxyManager/)
  • An Async gRPC client using Proxy Objects? (Or by default?)

How to use:

composer require lightningsale/lnd-client, (*1)

<?php

use LightningSale\LndClient\ClientFactory;
use Psr\Log\NullLogger;

require './vendor/autoload.php';


$rpcUsername = 'rpcusername';
$rpcPassword = 'rpcpassword';
$rpcHost     = '127.0.0.1';
$rpcPort     = '8080';
$tlsCert     = '/root/.lnd/tls.cert';
$macaroon    = '/root/.lnd/admin.macaroon';


$client = ClientFactory::createRestClient($rpcHost, $rpcPort, $tlsCert, $macaroon, new NullLogger());
var_dump($client->getInfo());

Example Symfony configuration:

# services.yml
LightningSale\LndClient\Client: '@LightningSale\LndClient\RestClient'
LightningSale\LndClient\RestClient:
    class: LightningSale\LndClient\RestClient
    factory: ['LightningSale\LndClient\ClientFactory','createRestClient']
    arguments: ['127.0.0.1', '8080', '/root/.lnd/tls.cert', '/root/.lnd/admin.macaroon', '@logger']

The Versions

19/04 2018

dev-master

9999999-dev

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

05/03 2018

v0.4.1

0.4.1.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

04/03 2018

0.4.0

0.4.0.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

10/01 2018

dev-swagger-gen

dev-swagger-gen

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

10/01 2018

v0.3.0

0.3.0.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

10/01 2018

v0.2.0

0.2.0.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

25/12 2017

v0.1.1

0.1.1.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen

25/12 2017

v0.1.0

0.1.0.0

A LND REST Client

  Sources   Download

MIT

The Requires

 

by Richard Hagen