Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lightningsale/lnd-client

A LND Client for PHP
https://github.com/lightningsale/lnd-client

grpc-api lightning-network lnd php rest-api

Last synced: about 1 month ago
JSON representation

A LND Client for PHP

Awesome Lists containing this project

README

        

## 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`

```php
getInfo());
```

### Example Symfony configuration:
```yaml
# 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']
```