bml-connect/laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bml-connect/laravel

Composer 安装命令:

composer require bml-connect/laravel

包简介

BML Connect PHP/Laravel SDK for Bank of Maldives payment gateway

README 文档

README

v1 — PHP/Laravel SDK for the BML Connect payment gateway by Bank of Maldives.

Requirements

  • PHP 8.1 or higher
  • Guzzle 7

Installation

composer require bml-connect/laravel

Quick Start

Standalone PHP

use BmlConnect\BmlConnect;
use BmlConnect\Enums\Environment;

$bml = new BmlConnect('your-api-key', Environment::PRODUCTION);

$transaction = $bml->transactions->create([
    'amount'       => 100.00,
    'currency'     => 'MVR',
    'redirectUrl'  => 'https://example.com/callback',
    'localId'      => 'order-123',
]);

echo $transaction->url; // Redirect customer to this URL

Laravel

Add your API key to .env:

BML_CONNECT_API_KEY=your-api-key
BML_CONNECT_ENV=production

Use the facade:

use BmlConnect\Facades\BmlConnect;

$transaction = BmlConnect::$transactions->create([
    'amount'       => 100.00,
    'currency'     => 'MVR',
    'redirectUrl'  => 'https://example.com/callback',
    'localId'      => 'order-123',
]);

Documentation

For full API reference and guides, see the Documentation.

Highlights:

Testing

./vendor/bin/phpunit

See Testing Guide for details on unit, feature, and integration tests.

License

MIT. See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固