{"id":15296195,"url":"https://github.com/lightningsale/lnd-client","last_synced_at":"2025-06-27T21:38:51.192Z","repository":{"id":57014905,"uuid":"115126250","full_name":"lightningsale/lnd-client","owner":"lightningsale","description":"A LND Client for PHP","archived":false,"fork":false,"pushed_at":"2020-01-13T14:16:21.000Z","size":262,"stargazers_count":4,"open_issues_count":7,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T00:02:47.891Z","etag":null,"topics":["grpc-api","lightning-network","lnd","php","rest-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightningsale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-22T15:13:59.000Z","updated_at":"2021-04-06T14:44:11.000Z","dependencies_parsed_at":"2022-08-22T09:31:31.552Z","dependency_job_id":null,"html_url":"https://github.com/lightningsale/lnd-client","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightningsale%2Flnd-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightningsale%2Flnd-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightningsale%2Flnd-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightningsale%2Flnd-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightningsale","download_url":"https://codeload.github.com/lightningsale/lnd-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113945,"owners_count":19749831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grpc-api","lightning-network","lnd","php","rest-api"],"created_at":"2024-09-30T18:09:42.453Z","updated_at":"2025-02-23T23:31:50.394Z","avatar_url":"https://github.com/lightningsale.png","language":"PHP","readme":"## A LND Client for PHP\n\n### TODO:\n- Create a gRPC Client\n- An Async Rest Client using Proxy Objects (http://ocramius.github.io/ProxyManager/)\n- An Async gRPC client using Proxy Objects? (Or by default?)\n\n### How to use:\n\n`composer require lightningsale/lnd-client`\n\n```php\n\u003c?php\n\nuse LightningSale\\LndClient\\ClientFactory;\nuse Psr\\Log\\NullLogger;\n\nrequire './vendor/autoload.php';\n\n\n$rpcUsername = 'rpcusername';\n$rpcPassword = 'rpcpassword';\n$rpcHost     = '127.0.0.1';\n$rpcPort     = '8080';\n$tlsCert     = '/root/.lnd/tls.cert';\n$macaroon    = '/root/.lnd/admin.macaroon';\n\n\n$client = ClientFactory::createRestClient($rpcHost, $rpcPort, $tlsCert, $macaroon, new NullLogger());\nvar_dump($client-\u003egetInfo());\n```\n\n### Example Symfony configuration:\n```yaml\n# services.yml\nLightningSale\\LndClient\\Client: '@LightningSale\\LndClient\\RestClient'\nLightningSale\\LndClient\\RestClient:\n    class: LightningSale\\LndClient\\RestClient\n    factory: ['LightningSale\\LndClient\\ClientFactory','createRestClient']\n    arguments: ['127.0.0.1', '8080', '/root/.lnd/tls.cert', '/root/.lnd/admin.macaroon', '@logger']\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightningsale%2Flnd-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightningsale%2Flnd-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightningsale%2Flnd-client/lists"}