changenow
![Latest Version on Packagist][ico-version]
![Build Status][ico-travis]
![Code Coverage][ico-code-quality]
, (*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)
$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)