trustaking / btcpayserver-php-client
用于与新的加密安全BTCPayServer API协同工作的PHP库
v0.1.1
2019-05-16 20:29 UTC
Requires
- php: >=5.4
- ext-bcmath: *
- ext-curl: *
- ext-json: *
- ext-openssl: *
- symfony/config: ^2.3 || ^3.0
- symfony/dependency-injection: ^2.3 || ^3.0
Requires (Dev)
- behat/behat: 2.5.*@stable
- behat/mink: 1.6.1
- behat/mink-extension: 1.3.*
- behat/mink-goutte-driver: 1.*
- behat/mink-selenium2-driver: 1.2.0
- fabpot/goutte: ~1.0.4
- fzaninotto/faker: ~1.4.0
- mikey179/vfsstream: ~1.4.0
- phpmd/phpmd: ~2.1.3
- phpunit/phpunit: ~4.3.1
- satooshi/php-coveralls: ~0.6.1
- squizlabs/php_codesniffer: ~1.5.5
Suggests
- ext-gmp: Quickest PHP math extension for doing computationally-expensive work.
This package is auto-updated.
Last update: 2024-09-21 04:26:55 UTC
README
这是一个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/