定制 tikiwiki/ilp-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tikiwiki/ilp-client

最新稳定版本:1.0.1

Composer 安装命令:

composer require tikiwiki/ilp-client

包简介

The PHP client library for Interledger. Integrates with ILP SPSP Invoice Server allowing to create and get invoices.

README 文档

README

The ILP module includes:

  • Support integration with ILP SPSP Invoice Server that allows to create and get invoices.

Setup development environment

Start ILP invoice server and Moneyd

cd test
docker-compose up -d

Run Tests

composer install --dev
vendor/bin/phpunit --configuration phpunit.xml

How to use

To learn more about ILP SPSP Invoice Server click here.

Create Invoice

$client = new ILPInvoiceServerClient('http://localhost:6000', 'test', false);
$amount = "900";
$assetCode = "XRP";
$assetScale = "9";
$webhook = "https://my.webhook.test"; # URL to be called after a successful payment
$response = $client->createInvoice($amount, $assetCode, $assetScale, $webhook, ["reason" => "more stuff"]);

Get Invoice

# The parameter corresponds to a URL of an invoice.
$invoice = $client->getInvoice("http://localhost:6000/06bb8852-b6cb-45f4-ba99-7e8809903db1");

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-02