php-lightning/lnaddress 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

php-lightning/lnaddress

最新稳定版本:0.8.0

Composer 安装命令:

composer require php-lightning/lnaddress

包简介

README 文档

README

PHP Lightning Address is an easy way to get a lightning address in PHP.

GitHub Build Status Scrutinizer Code Quality Scrutinizer Code Coverage Psalm Type-coverage Status MIT Software License

Usage / Development

Set up your custom config:

cp lightning-config.dist.php lightning-config.php
# or just simply the nostr.json to define the backends/user-settings
cp nostr.dist.json nostr.json

You can customize the invoice description and the success message by editing lightning-config.php:

use PhpLightning\Config\LightningConfig;

return (new LightningConfig())
    ->setDescriptionTemplate('Pay to %s on mynode')
    ->setSuccessMessage('Thanks for the payment!');

Run a local PHP server listening public/index.php

composer serve

Demo template

We prepared a demo template, so you can use this project as a dependency. The benefits from this approach is that you can update your project with composer update whenever there are new features or improvements on this lnaddress repository.

https://github.com/php-lightning/demo-lnaddress

Wiki

Check the wiki for more details: https://github.com/php-lightning/lnaddress/wiki

Contributions

Feel free to open issues & PR if you want to contribute to this project.

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 23
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 23
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-04