coinrequest/button-wallet-php-api
最新稳定版本:0.2.1
Composer 安装命令:
composer require coinrequest/button-wallet-php-api
包简介
PHP API client for BUTTON Wallet
README 文档
README
PHP package for the BUTTON Wallet API.
Getting Started
Run the following command to install this package into your project.
composer require coinrequest/button-wallet-php-api
Prerequisites
You will need Composer to install this package.
Installing
After installing this package with composer, create a new ButtonWallet instance. And include your API key.
Something like this
$buttonWallet = new ButtonWallet('yourpersonalapikey');
And call the desired endpoint
$buttonWallet->linkEndpoint()->createLink($params);
The current implemented endpoints are:
- /FastLink/
- create
- readAll
- readInfoByUuid
- readByUuid
- webhook
- webhook/set
Documentation of the endpoints will be later available online. Please check the code for documentation and example requests and responses.
Running the tests
First, create a .env file and set your API Key. Please see the .env.example for the template.
Run the tests in the Tests directory with PHPUnit.
Built With
- ButtonWallet - For the API Server
- PHPUnit - Test Framework
- Guzzle - For HTTP Requests
Contributing
Please help us to develop this package. Every input and/or feedback is really appreciated!
License
This project is licensed under the MIT License.
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-15