PHPackages                             bml-connect/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bml-connect/laravel

ActiveLibrary

bml-connect/laravel
===================

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

033PHP

Since Mar 2Pushed 2mo agoCompare

[ Source](https://github.com/Syndrom7/bml-connect-laravel)[ Packagist](https://packagist.org/packages/bml-connect/laravel)[ RSS](/packages/bml-connect-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BML Connect PHP SDK
===================

[](#bml-connect-php-sdk)

**v1** — PHP/Laravel SDK for the [BML Connect](https://dashboard.merchants.bankofmaldives.com.mv/) payment gateway by Bank of Maldives.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Guzzle 7

Installation
------------

[](#installation)

```
composer require bml-connect/laravel
```

Quick Start
-----------

[](#quick-start)

### Standalone PHP

[](#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

[](#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
-------------

[](#documentation)

For full API reference and guides, see the **[Documentation](docs/README.md)**.

Highlights:

- [Getting Started](docs/getting-started.md) — installation, configuration, environment setup
- [Transactions](docs/transactions.md) — create, list, update, idempotency keys
- [Pagination](docs/pagination.md) — paginated results, iterating pages
- [Webhooks](docs/webhooks.md) — registration, signature verification, payload parsing
- [Error Handling](docs/error-handling.md) — typed exceptions

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

See [Testing Guide](docs/testing.md) for details on unit, feature, and integration tests.

License
-------

[](#license)

MIT. See [LICENSE](LICENSE) for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance56

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49ed2708a9ac2885109089fa8fbafd1f7c039f422309c9958c36ee6f40a508ed?d=identicon)[Syndrom7](/maintainers/Syndrom7)

---

Top Contributors

[![Syndrom7](https://avatars.githubusercontent.com/u/55350262?v=4)](https://github.com/Syndrom7 "Syndrom7 (1 commits)")

### Embed Badge

![Health badge](/badges/bml-connect-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/bml-connect-laravel/health.svg)](https://phpackages.com/packages/bml-connect-laravel)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
