承接 modempay/modempay-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

modempay/modempay-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require modempay/modempay-php

包简介

Official PHP SDK for ModemPay payment processing. Simple, fast, and framework-agnostic with first-class Laravel support.

README 文档

README

Official PHP SDK for ModemPay payment processing.

Latest Version PHP Version License

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

统计信息

  • 总下载量: 117
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-25