andre_delarge/coinpayments
Composer 安装命令:
composer require andre_delarge/coinpayments
包简介
CoinPayments API client
README 文档
README
** FIXED **
I fork original repository and fix it, now it works well with CoinPayments Api
This is basic PHP library for CoinPayments API.
Sample usage
use Delarge\CoinPayments; $coinPaymentsAPI = new CoinPayments($merchantID, $publicKey, $privateKey, $ipnSecret); // Get conversion rates for all supported currencies $rates = $coinPaymentsAPI->getRates()->getResponse(); // Sample transaction for 16$ $coinPaymentsAPI->createTransaction(16, 'USD', 'BTC', $additional = [])->getResponse();
Getting Started
Requirements
- PHP >= 7.1
This library does not have any external dependencies.
Installation
The recommended way to install this library is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of CoinPayments PHP library:
composer require andre_delarge/coinpayments
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
You can then later update library using composer:
composer.phar update
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
- Žiga Drnovšček - Initial work - Sigismund
- Andrew Delarge - Fixing - AndrewDelarge
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-25