davmixcool/coinpayments
Composer 安装命令:
composer require davmixcool/coinpayments
包简介
A PHP wrapper for CoinPayments.net Api.
关键字:
README 文档
README
A PHP wrapper for CoinPayments.net Api. For account instructions visit: online API documentation to learn how to setup your API Keys and get a link to your account API Keys page.
Requirements
- PHP 5.5 and above
Steps:
Installation
Composer
Run the following command to include this package via Composer
composer require davmixcool/coinpayments
Usage
The simplest example is retrieving basic account information.
use Davmixcool\CoinPayments; /** Scenario: Retrieve basic user account information.**/ try { $cps_api = new CoinPayments($private_key, $public_key, 'json'); $information = $cps_api->GetBasicInfo(); } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); exit(); } // Check for success of API call if ($cps_api['error'] == 'ok') { // Prepare output } else { // Throw an error if both API calls were not successful }
See examples here. for detailed scenarios.
Maintainers
This package is maintained by David Oti and you!
License
This package is licensed under the MIT license.
统计信息
- 总下载量: 94
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-23