vinkas / airwallex
PHP SDK for Airwallex API
Installs: 34
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/vinkas/airwallex
Requires
- saloonphp/saloon: ^3.10
Requires (Dev)
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2025-10-05 17:19:29 UTC
README
PHP SDK for Airwallex API
Installation
The package vinkas/airwallex can be installed using composer via Packagist.
composer require vinkas/airwallex
Configuration
Set the Airwallex Client ID and API Key values in Environment variables using the keys AIRWALLEX_CLIENT_ID and AIRWALLEX_API_KEY.
Usage
Create a new Client instance and get the balances related endpoints like below
use Vinkas\Airwallex\Client; $client = new Client(); $balances = $client->getBalances()->getCurrent()->array(); $balanceHistory = $client->getBalances()->getHistory()->object(); // Result will include records for the last 7 days by default $balanceHistory = $client->getBalances()->getHistory($from, $to)->object(); // $from & $to - any dates in ISO8601 format. max time range - 7 days
For more API-related details refer to https://www.airwallex.com/docs/api