2017 © Pedro Peláez
 

library ln-lnd-grpc

Lightning Network LND gRPC client for Bitcoin and other supported coins. The classes and client is generated from rpc.proto.

image

ndeet/ln-lnd-grpc

Lightning Network LND gRPC client for Bitcoin and other supported coins. The classes and client is generated from rpc.proto.

  • Tuesday, April 3, 2018
  • by ndeet
  • Repository
  • 2 Watchers
  • 1 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 900 % Grown

The README.md

PHP lnd gRPC client

This package has been abandoned, please use the better maintened one on lnpay here https://packagist.org/packages/lnpay/php-lnd-grpc., (*1)

This library is a gRPC client for lnd version 0.5-beta. It is generated code from rpc.proto., (*2)

Requirements

To use this library you need to, (*3)

  • gRPC extension
  • PHP >= 7.0

Install gRPC extension if not installed, (*4)

# pecl install grpc

Add grpc.so to php.ini. For PHP 7.0 in Ubuntu it will be, (*5)

# echo 'extension=grpc.so' >> /etc/php/7.0/cli/php.ini

Adding to your project

Via composer

$ cd /project/
$ composer require ndeet/ln-lnd-grpc

Cloning from Git

$ cd /project/
$ git clone https://github.com/ndeet/php-ln-lnd-grpc.git lndrpc
$ cd ./lndrpc/
$ composer install

Example

Example of usage you can find in example/index.php. Note: This is currently untested with the latest lnd-0.5-beta release as time of committing but wanted to push the updated classes out., (*6)

Generation of PHP classes

As a primer to grpc and PHP see the official tutorial and the lnrpc readme., (*7)

The following command was used to generate the classes:, (*8)

protoc -I/usr/local/include -I. -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/ --php_out=src --grpc_out=src --plugin=protoc-gen-grpc=/usr/local/Cellar/grpc/1.14.2/bin/grpc_php_plugin rpc.proto

Credits

This is a fork of Bitfury Lighting gRPC PHP client. Unfortunately they seem to have abandoned it and did not respond to issues/pull requests #1 #2 #3. That's why this fork now lives here on its own., (*9)

The Versions

03/04 2018

dev-master

9999999-dev

Lightning Network LND gRPC client for Bitcoin and other supported coins. The classes and client is generated from rpc.proto.

  Sources   Download

MIT

The Requires

 

by Andreas Tasch

bitcoin lightning grpc lnd

03/04 2018

0.4.1

0.4.1.0

Lightning Network LND gRPC client for Bitcoin and other supported coins. The classes and client is generated from rpc.proto.

  Sources   Download

MIT

The Requires

 

by Andreas Tasch

bitcoin lightning grpc lnd

16/03 2018

0.4.0

0.4.0.0

gRPC client for Bitcoin Lightning network LND implementation. The code is generated from rpc.proto.

  Sources   Download

MIT

The Requires

 

by Andreas Tasch

bitcoin lightning grpc lnd

14/03 2018

0.2.0

0.2.0.0

gRPC client for Bitcoin Lightning network LND implementation. The code is generated from rpc.proto.

  Sources   Download

MIT

The Requires

 

by Andreas Tasch

bitcoin lightning grpc lnd

22/05 2017

0.1.0

0.1.0.0

Grpc client for lnd v0.2.1-alpha. It is generated code from rpc.proto.

  Sources   Download

MIT

The Requires

 

by BitfuryLightning

lightning grpc