pxgamer / changenow
A PHP wrapper for the ChangeNOW API.
                                    Fund package maintenance!
                                                                            
                                                                                                                                        owenvoke
                                                                                    
                                                                            
                                                                                                                                        ecologi.com/owenvoke?gift-trees
                                                                                    
                                                                
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 7
Open Issues: 0
pkg:composer/pxgamer/changenow
Requires
- php: ^7.1
 - guzzlehttp/guzzle: ^6.3
 
Requires (Dev)
- phpunit/phpunit: ^6.0 || ^7.0
 - squizlabs/php_codesniffer: ^3.0
 
This package is auto-updated.
Last update: 2025-10-24 23:28:08 UTC
README
A PHP wrapper for the ChangeNOW API.
Install
Via Composer
$ composer require pxgamer/changenow
Usage
Creating instances
use pxgamer\ChangeNow\{Currencies,Transactions}; $currencies = new Currencies(); $transactions = new Transactions();
Retrieve an array of currency stdClass instances
These contain the following information:
- ticker
 - name
 - image
 
$currencies->get();
Retrieve the minimum amount required to convert between 2 currencies
$currencies->minimumAmount('btc', 'etc');
Retrieve the estimated exchange value between 2 currencies
$currencies->exchangeAmount('btc', 'etc', 1.0);
Retrieve an array of transactions
Returns an array of transaction stdClass instances containing the following values:
- 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
Returns a transaction status string.
$transactions->status('id');
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.