afconwave / afconwave-php
Official AfconWave PHP SDK for API v2 — deposits, withdrawals, wallets, FX, refunds.
dev-main
2026-11-02 01:24 UTC
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0 || ^10.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-02 01:24:24 UTC
README
Official PHP SDK for AfconWave API v2.
Keys: afcw_test_… · afcw_live_…
Auth: X-API-Key
Refs: AFCW-IN-… / AFCW-OUT-…
composer require afconwave/afconwave-php
Quick start
use AfconWave\AfconWave; $afc = new AfconWave('afcw_test_your_key_here'); $deposit = $afc->deposits()->create([ 'amount' => 5000, 'country_code' => 'CM', 'currency' => 'XAF', 'payment_method' => 'MTN', 'mobile' => '670000000', 'mode' => 'direct', 'idempotency_key' => 'order-123', ]); $payout = $afc->withdrawals()->create([ 'amount' => 2000, 'currency' => 'XAF', 'country_code' => 'CM', 'payment_method' => 'MTN', 'beneficiary_name' => 'Jane Doe', 'mobile_no' => '670000001', ]); $wallets = $afc->wallets()->list();
Resources
deposits, withdrawals, wallets, transactions, refunds, disputes, airtime, data, paymentLinks, rails
Deprecated: createPayment / payments() → deposits; createPayout / payouts() → withdrawals.
Breaking changes (v2)
- Auth is
X-API-Key, not Bearer. - Base path
/v1. - Corridor fields required (
country_code,payment_method, etc.).
License
MIT