2017 © Pedro Peláez
 

library changenow

A PHP wrapper for the ChangeNOW API.

image

pxgamer/changenow

A PHP wrapper for the ChangeNOW API.

  • Friday, March 30, 2018
  • by PXgamer
  • Repository
  • 0 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

changenow

![Latest Version on Packagist][ico-version] Software License ![Build Status][ico-travis] Style CI ![Code Coverage][ico-code-quality] Total Downloads, (*1)

A PHP wrapper for the ChangeNOW API., (*2)

Install

Via Composer, (*3)

$ composer require pxgamer/changenow

Usage

Creating instances, (*4)

use pxgamer\ChangeNow\{Currencies,Transactions};

$currencies = new Currencies();
$transactions = new Transactions();

Retrieve an array of currency stdClass instances, (*5)

These contain the following information:, (*6)

  • ticker
  • name
  • image
$currencies->get();

Retrieve the minimum amount required to convert between 2 currencies, (*7)

$currencies->minimumAmount('btc', 'etc');

Retrieve the estimated exchange value between 2 currencies, (*8)

$currencies->exchangeAmount('btc', 'etc', 1.0);

Retrieve an array of transactions, (*9)

Returns an array of transaction stdClass instances containing the following values:, (*10)

  • id
  • status
  • payinConfirmations
  • hash
  • payinHash
  • payoutHash
  • payinAddress
  • payoutAddress
  • payinExtraId
  • payoutExtraId
  • fromCurrency
  • toCurrency
  • amountSend
  • amountReceive
  • networkFee
  • updatedAt
$transactions->get();

Retrieve a single transaction's status by ID, (*11)

Returns a transaction status string., (*12)

$transactions->status('id');

Change log

Please see CHANGELOG for more information on what has changed recently., (*13)

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*14)

Security

If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker., (*15)

Credits

License

The MIT License (MIT). Please see License File for more information., (*16)

The Versions

30/03 2018

dev-develop

dev-develop

A PHP wrapper for the ChangeNOW API.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2018

dev-master

9999999-dev

A PHP wrapper for the ChangeNOW API.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2018

v1.0.0

1.0.0.0

A PHP wrapper for the ChangeNOW API.

  Sources   Download

MIT

The Requires

 

The Development Requires