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
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-02