sigismund/coinpayments
Composer 安装命令:
composer require sigismund/coinpayments
包简介
CoinPayments API client
README 文档
README
This is basic PHP library for CoinPayments API. It's written without any external dependencies and it allows you to add your own HTTP agents like Guzzle. CoinPayments is one of the largest cryptocurrency payment processors. They support over few hundred cryptocurrencies. Amongst those are better known Bitcoin, Litecoin, Ethereum, Monero... some lesser known/used coins like Ubiq, Peercoin, GameCredits and they even support shitcoins like Ripple.
Sample usage
use Sigismund\CoinPayments; $coinPaymentsAPI = new CoinPayments($merchantID, $publicKey, $privateKey, $ipnSecret); // Get conversion rates for all supported currencies $rates = $coinPaymentsAPI->getRates(); // Sample transaction for 16$ $coinPaymentsAPI->createTransaction(16, 'USD', 'BTC', $additional = []);
Getting Started
Requirements
- PHP >= 7.0
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 sigismund/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
Testing
... all pull requests are welcome ;)
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Žiga Drnovšček - Initial work - Sigismund
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
Acknowledgments
- Hat tip to anyone who's code was used
- Inspiration
- etc
sigismund/coinpayments 适用场景与选型建议
sigismund/coinpayments 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 975 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「crypto」 「cryptocurrency」 「coinpayments」 「payment processor」 「crypto payment」 「coinp ayments」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sigismund/coinpayments 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sigismund/coinpayments 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sigismund/coinpayments 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
High-level cryptographic primitives and security utilities for Maatify systems including password hashing, reversible encryption, HKDF key derivation, and key rotation.
Cryptonator Merchant API
Coinpayments for Laravel
Implementation of Bitclout API interaction through its node
A PHP wrapper for CoinPayments.net Api.
A simple PHP Cryptography Implementation for the Ark Blockchain.
统计信息
- 总下载量: 975
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-06