Skip to content

ALFAcashier/alfacashier-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

alfacashier-api-php is a PHP Library for interacting with ALFAcashier API.

alfacashier-api-php provides instant automatic cryptocurrency exchange integration on your website via ALFAcashier.

alfacashier-api-php allows you to integrate instant automatic exchange of the following cryptocurrencies:

  • Bitcoin (BTC)
  • Ethereum (ETH)
  • XRP (XRP)
  • Bitcoin Cash (BCH)
  • Litecoin (LTC)
  • Zcash (ZEC)
  • Dash (DASH)
  • Monero (XMR)
  • NEM (XEM)
  • Stellar (XLM)
  • Ethereum Classic (ETC)

Installation

alfacashier-api-php is available on Packagist (using semantic versioning), and installation via composer is the recommended way to install alfacashier-api-php. Just add this line to your composer.json file:

"alfacashier/alfacashier-api-php": "~v1.0"

or run

composer require alfacashier/alfacashier-api-php

Note that the vendor folder and the vendor/autoload.php script are generated by composer; they are not part of alfacashier-api-php.

Alternatively, if you're not using composer, copy the contents of the alfacashier-api-php folder somewhere and load each class file manually:

<?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;

To work with unstable version simply clone this repository:

git clone https://github.com/alfacashier/alfacashier-api-php
cd alfacashier-api-php/

Getting Started

See the examples directory for examples of how to use this library.

Additional information and API documentation is here: ALFAcashier API Reference.