changelly
![Latest Version on Packagist][ico-version]
![Build Status][ico-travis]
![Code Coverage][ico-code-quality]
, (*1)
A PHP wrapper for the Changelly API., (*2)
Install
Via Composer, (*3)
$ composer require pxgamer/changelly
Usage
Creating instances, (*4)
use pxgamer\Changelly\{Currencies,Transactions,Message};
$currencies = new Currencies();
$transactions = new Transactions();
Retrieve an array of currency names, (*5)
Retrieve an array of strings stating the name
of the currency., (*6)
$currencies->get();
Retrieve an array of currency stdClass
instances, (*7)
These contain the following information:, (*8)
$currencies->getFull();
Retrieve the minimum amount required to convert between 2 currencies, (*9)
$currencies->minimumAmount('btc', 'etc');
Retrieve the estimated exchange value between 2 currencies, (*10)
$currencies->exchangeAmount('btc', 'etc', 1.0);
Retrieve an array of transactions, (*11)
Returns an array of transaction stdClass
instances containing the following values:, (*12)
- id
- createdAt
- payinConfirmations
- status
- currencyFrom
- currencyTo
$transactions->get();
Retrieve a single transaction's status by ID, (*13)
Returns a transaction status string., (*14)
$transactions->status('id');
Change log
Please see CHANGELOG for more information on what has changed recently., (*15)
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*16)
Security
If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker., (*17)
Credits
License
The MIT License (MIT). Please see License File for more information., (*18)