{"id":13499305,"url":"https://github.com/microlancer/lightning-php","last_synced_at":"2025-04-19T14:40:05.141Z","repository":{"id":57069117,"uuid":"154758828","full_name":"microlancer/lightning-php","owner":"microlancer","description":"PHP interface for the elements/c-lightning RPC API","archived":false,"fork":false,"pushed_at":"2018-10-26T02:05:10.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-06T01:18:51.663Z","etag":null,"topics":["bitcoin","c-lightning","lightning-network"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microlancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-26T01:19:08.000Z","updated_at":"2024-08-06T01:18:51.664Z","dependencies_parsed_at":"2022-08-24T14:54:14.661Z","dependency_job_id":null,"html_url":"https://github.com/microlancer/lightning-php","commit_stats":null,"previous_names":["thorie7912/lightning-php"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlancer%2Flightning-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlancer%2Flightning-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlancer%2Flightning-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microlancer%2Flightning-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microlancer","download_url":"https://codeload.github.com/microlancer/lightning-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249716225,"owners_count":21315062,"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","c-lightning","lightning-network"],"created_at":"2024-07-31T22:00:32.045Z","updated_at":"2025-04-19T14:40:05.119Z","avatar_url":"https://github.com/microlancer.png","language":"PHP","readme":"# lightning-php\nPHP interface for the elements/c-lightning RPC API\n\n## Installation\n\n`composer require thorie7912/lightning-php:^1.0`\n\n## Usage\n\n```php\n$lightningApi = new \\Lightning\\LightningApi();\n$lightningApi-\u003esetRpcFile(\"/home/user/.lightning/lightning-rpc\");\n\n// Get info\n\n$json = $lightningApi-\u003egetInfo();\necho json_encode($json, JSON_PRETTY_PRINT);\n\n// Pay invoice\n\n$invoice = \"ln123xyz...\";\n$json = $lightningApi-\u003epay($invoice);\necho json_encode($json, JSON_PRETTY_PRINT);\n\n// Create invoice\n\n$msatoshi = 50000;\n$label = \"Some label\";\n$description = \"Some description\";\n$json = $lightningApi-\u003ecreateinvoice($msatoshi, $label, $description);\necho json_encode($json, JSON_PRETTY_PRINT);\n```\n\n\n","funding_links":[],"categories":["Developer Resources"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrolancer%2Flightning-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrolancer%2Flightning-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrolancer%2Flightning-php/lists"}