happyslucker / change-now-api
The ChangeNowApi Client Library is a powerful and user-friendly tool designed for developers looking to integrate the ChangeNow cryptocurrency exchange API into their applications. This library simplifies the process of interacting with ChangeNow's extensive range of services, enabling seamless cryp
Requires
- php: >=8.1
- guzzlehttp/guzzle: ^7.9
- respect/validation: ^2.4
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is not auto-updated.
Last update: 2025-07-05 22:08:10 UTC
README
The ChangeNowApi Client Library is a powerful and user-friendly tool designed for developers looking to integrate the ChangeNow cryptocurrency exchange API into their applications. This library simplifies the process of interacting with ChangeNow's extensive range of services, enabling seamless cryptocurrency exchanges and transaction monitoring.
Features
- Easy Integration:
- Library provides straightforward interface connected to ChangeNow API
- Allows developers to quickly implement cryptocurrency exchange functionalities in their applications
- Comprehensive API Coverage:
- Access most major functionalities offered by ChangeNow
- Instant swaps between various cryptocurrencies
- Tracking of transaction status
- Ability to use both versions of API.
Use Cases
- Crypto Wallet Applications: Integrate ChangeNow's exchange capabilities into wallet applications, allowing users to swap cryptocurrencies effortlessly.
- Trading Platforms: Enhance trading platforms with the ability to perform instant exchanges between various crypto assets.
- Financial Services: Build applications that require cryptocurrency conversion services, enabling users to manage their digital assets with ease.
Installation
composer require happyslucker/change-now-api
Creating a transaction | Example
$changeNowApiClient = new ChangeNowApiClient($apiKey);
// Creating transaction by V1 API
$minimalAmount = $changeNowApiClient->v1->exchangeService->getMinimalAmount(
"btc", "eth"
)->minAmount;
$transaction = $changeNowApiClient->v1->transactionService->createTransaction([
"from" => "btc",
"to" => "eth",
"amount" => $minimalAmount,
"address" => "0xa14177e294f86baef97a510debc2ebf917dc91fa",
]
);
// Creating transaction by V2 API
$minimalAmount = $changeNowApiClient->v2->exchangeService->getMinimalAmount(
"btc", "btc", "eth", "eth"
)->minAmount;
$transaction = $changeNowApiClient->v2->transactionService->createTransaction([
"fromCurrency" => "btc",
"fromNetwork" => "btc",
"toCurrency" => "eth",
"toNetwork" => "eth",
"fromAmount" => $minimalAmount,
"address" => "0xa14177e294f86baef97a510debc2ebf917dc91fa"
]
);
Important Notes
Only those methods that are available without an affiliate program are implemented.