trustaking/btcpayserver-php-client

用于与新的加密安全BTCPayServer API协同工作的PHP库

v0.1.1 2019-05-16 20:29 UTC

This package is auto-updated.

Last update: 2024-09-21 04:26:55 UTC


README

GitHub license Travis Packagist Code Climate Scrutinizer Coveralls

Documentation Status Total Downloads Latest Unstable Version

这是一个BTCPayServer的加密安全API的独立PHP实现: https://github.com/btcpayserver/btcpayserver-doc/blob/master/CustomIntegration.md

开始之前

如果你的应用程序需要BitPay兼容性,请访问此存储库:https://github.com/btcpayserver/php-bitpay-client

重要升级说明

版本 0.2.0

  • BitPay v4 API的最新更改现在反映在本API中。
  • 如果你之前使用此API时遇到了“401未授权”的问题,这些问题现在应该已经解决。
  • 此PHP API不再依赖于Symfony,使其成为独立框架。如果你曾与Symfony结合使用此API并需要Symfony服务,你可以从old-master分支获取旧文件。我们建议你将Symfony相关内容分开。

版本 0.1.2

  • 之前的版本没有编号。

安装

Composer

安装Composer

curl -sS https://getcomposer.org/installer | php

使用composer安装

php composer.phar require btcpayserver/btcpayserver-php-client

配置

请参阅https://github.com/btcpayserver/btcpayserver-php-client/tree/master/examples

用法

文档

请参阅docs目录了解如何使用此库,以及examples目录了解使用此库的示例。你应该可以通过运行php examples/File.php来运行所有示例。

examples/tutorial目录提供了四个脚本,指导你创建BTCPayServer发票:https://github.com/btcpayserver/btcpayserver-php-client/blob/master/examples/tutorial/

支持