alfacashier / alfacashier-api-php
与 ALFAcashier.com API 交互的 PHP 库
v1.0
2018-10-03 14:25 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2024-09-29 05:42:11 UTC
README
alfacashier-api-php 是一个用于与 ALFAcashier API 交互的 PHP 库。
alfacashier-api-php 通过 ALFAcashier 为您的网站提供即时自动加密货币交换集成。
alfacashier-api-php 允许您集成以下加密货币的即时自动交换
- 比特币 (BTC)
- 以太坊 (ETH)
- 瑞波币 (XRP)
- 比特币现金 (BCH)
- 莱特币 (LTC)
- 零币 (ZEC)
- 达世币 (DASH)
- 门罗币 (XMR)
- NEM (XEM)
- 恒星币 (XLM)
- 以太坊经典 (ETC)
安装
alfacashier-api-php 可在 Packagist 上找到(使用语义版本控制),并且通过 composer 安装 alfacashier-api-php 是推荐的方式。只需将此行添加到您的 composer.json
文件中
"alfacashier/alfacashier-api-php": "~v1.0"
或运行
composer require alfacashier/alfacashier-api-php
请注意,vendor
文件夹和 vendor/autoload.php
脚本是由 composer 生成的;它们不是 alfacashier-api-php 的一部分。
或者,如果您不使用 composer,可以将 alfacashier-api-php 文件夹的内容复制到某个位置,然后手动加载每个类文件
<?php // include once ALFAcashier main API class require_once 'path/to/alfacashier-api-php/src/Api.php'; require_once 'path/to/alfacashier-api-php/src/Exception.php'; use ALFAcashier\ALFAcashierAPI; use ALFAcashier\ALFAcashier_Exception; // create new ALFAcashierAPI object $api = new ALFAcashierAPI;
要使用不稳定版本,只需克隆此存储库即可
git clone https://github.com/alfacashier/alfacashier-api-php
cd alfacashier-api-php/
入门
请参阅 examples 目录以获取如何使用此库的示例。
更多信息以及 API 文档在此处:ALFAcashier API 参考。