modempay / modempay-php
Official PHP SDK for ModemPay payment processing. Simple, fast, and framework-agnostic with first-class Laravel support.
Installs: 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/modempay/modempay-php
Requires
- php: ^8.1
- symfony/http-client: ^6.0|^7.0
Requires (Dev)
- illuminate/support: ^10.0|^11.0
- phpunit/phpunit: ^10.0|^11.0
Suggests
- illuminate/support: Required for Laravel integration (^10.0|^11.0)
README
Official PHP SDK for ModemPay payment processing.
Installation
composer require modempay/modempay-php
Quick Start
use ModemPay\ModemPay; $modemPay = new ModemPay('your_api_key'); // List payment intents $payments = $modemPay->paymentIntents()->list(['limit' => 10]); // Create a transfer $transfer = $modemPay->transfers()->initiate([ 'amount' => 1000, 'account_number' => '7012345', 'network' => 'wave', 'currency' => 'GMD', 'beneficiary_name' => 'John Doe' ], 'idempotency-key'); // Validate webhook $event = $modemPay->webhooks()->composeEventDetails( file_get_contents('php://input'), $_SERVER['HTTP_X_MODEMPAY_SIGNATURE'], 'your_webhook_secret' );
Laravel Integration
The SDK auto-registers with Laravel. View Laravel documentation →
use ModemPay\Laravel\Facades\ModemPay; ModemPay::paymentIntents()->list();
Documentation
Requirements
- PHP 8.1 or higher
- Symfony HTTP Client
License
MIT License - see LICENSE for details.
Support
- Documentation: https://docs.modempay.com
- Email: info@modempay.com