{"id":16562832,"url":"https://github.com/utxo-one/lnd-php","last_synced_at":"2025-03-21T11:32:33.713Z","repository":{"id":62832796,"uuid":"562215650","full_name":"utxo-one/lnd-php","owner":"utxo-one","description":"PHP SDK for LND","archived":false,"fork":false,"pushed_at":"2023-01-18T19:04:18.000Z","size":111,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T20:37:23.701Z","etag":null,"topics":["bitcoin","lightning","lightning-network","lnd","php8","rest","rest-api","sdk","sdk-php"],"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/utxo-one.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":"2022-11-05T16:52:27.000Z","updated_at":"2024-07-23T21:11:17.000Z","dependencies_parsed_at":"2023-02-10T17:00:51.855Z","dependency_job_id":null,"html_url":"https://github.com/utxo-one/lnd-php","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utxo-one%2Flnd-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utxo-one%2Flnd-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utxo-one%2Flnd-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utxo-one%2Flnd-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utxo-one","download_url":"https://codeload.github.com/utxo-one/lnd-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221814961,"owners_count":16885086,"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":["bitcoin","lightning","lightning-network","lnd","php8","rest","rest-api","sdk","sdk-php"],"created_at":"2024-10-11T20:37:21.295Z","updated_at":"2024-10-28T10:04:42.060Z","avatar_url":"https://github.com/utxo-one.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PHP-LND (ALPHA RELEASE)\n\nA PHP SDK for the LND implementation of the Lightning Network\n\n### Installation\n\n```\ncomposer require utxo-one/lnd-php\n```\n\n### Usage\n\n```php\nuse UtxoOne\\LndPhp\\Services\\LightningService;\n\n// Initialize an LND Instance.\n$lightningService = new LightningService(\n    host: $this-\u003ehost,\n    port: $this-\u003eport,\n    macaroonHex: $this-\u003emacaroonHex,\n    tlsCertificat: $this-\u003etlsCertificate,\n);\n\n// Execute a command. ie getinfo\n$nodeInfo = $lightningService-\u003egetInfo();\n\n// Get the results\n$nodeInfo-\u003egetVersion();\n$nodeInfo-\u003egetCommitHash();\n$nodeInfo-\u003egetIdentityPubkey();\n$nodeInfo-\u003egetAlias();\n$nodeInfo-\u003egetNumPendingChannels();\n$nodeInfo-\u003egetNumActiveChannels();\n$nodeInfo-\u003egetNumPeers();\n$nodeInfo-\u003egetBlockHash();\n$nodeInfo-\u003egetBlockHeight();\n$nodeInfo-\u003egetUris();\n$nodeInfo-\u003egetBestHeaderTimestamp();\n$nodeInfo-\u003eisSyncedToChain();\n$nodeInfo-\u003eisTestnet();\n$nodeInfo-\u003erequiresHtlcInterceptor();\n```\n\n### Available Methods\n\n```php\n// Lightning Service\n$lightningService-\u003egetInfo();\n$lightningService-\u003eabandonChannel();\n$lightningService-\u003eaddInvoice();\n$lightningService-\u003ebakeMacaroon();\n$lightningService-\u003ebatchOpenChannel();\n$lightningService-\u003echannelAcceptor();\n$lightningService-\u003echannelBalance();\n$lightningService-\u003echeckMacaroonPermissions();\n$lightningService-\u003ecloseChannel();\n$lightningService-\u003eclosedChannels();\n$lightningService-\u003elookupInvoice();\n$lightningService-\u003esendCoins();\n$lightningService-\u003esendMany();\n$lightningService-\u003egetInfo();\n\n// WalletKit Service\n$walletKitService-\u003enextAddr();\n$walletKitService-\u003elistAddresses();\n$walletKitService-\u003elistUnspent();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futxo-one%2Flnd-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futxo-one%2Flnd-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futxo-one%2Flnd-php/lists"}