PHP Library for interacting with the API.

v1.0 2018-10-03 14:38 UTC

This package is not auto-updated.

Last update: 2020-07-10 04:01:56 UTC


alfacoins-api-php is a PHP Library for interacting with ALFAcoins API.

alfacoins-api-php provides cryptocurrency payment integration on your website via ALFAcoins.

alfacoins-api-php allows you to integrate payments with the following cryptocurrencies:

  • Bitcoin (BTC)
  • Ethereum (ETH)
  • XRP (XRP)
  • Bitcoin Cash (BCH)
  • Litecoin (LTC)
  • Dash (DASH)


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

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

or run

composer require alfacoins/alfacoins-api-php

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

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

// include once ALFAcoins Private API class
require_once '../src/privateAPI.php';
require_once '../src/Exception.php';
use ALFAcoins\ALFAcoins_privateAPI;
use ALFAcoins\ALFAcoins_Exception;

To work with unstable version simply clone this repository:

git clone
cd alfacoins-api-php/

Getting Started

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

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