PHPackages                             blaaiz/blaaiz-laravel-sdk - 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. [API Development](/categories/api)
4. /
5. blaaiz/blaaiz-laravel-sdk

ActiveLibrary[API Development](/categories/api)

blaaiz/blaaiz-laravel-sdk
=========================

Official Laravel SDK for Blaaiz RaaS (Remittance as a Service) API

v1.0.8(1mo ago)0488↓79.8%[1 PRs](https://github.com/Blaaiz/blaaiz-laravel-sdk/pulls)MITPHPPHP ^8.1CI passing

Since Jul 21Pushed 1mo agoCompare

[ Source](https://github.com/Blaaiz/blaaiz-laravel-sdk)[ Packagist](https://packagist.org/packages/blaaiz/blaaiz-laravel-sdk)[ Docs](https://docs.business.blaaiz.com)[ RSS](/packages/blaaiz-blaaiz-laravel-sdk/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (28)Versions (19)Used By (0)

Blaaiz Laravel SDK
==================

[](#blaaiz-laravel-sdk)

Official Laravel SDK for the Blaaiz RaaS (Remittance as a Service) API.

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

[](#installation)

```
composer require blaaiz/blaaiz-laravel-sdk
```

Laravel package discovery is enabled automatically.

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

[](#quick-start)

### OAuth 2.0

[](#oauth-20)

OAuth is recommended for new integrations.

```
BLAAIZ_CLIENT_ID=your-client-id
BLAAIZ_CLIENT_SECRET=your-client-secret
BLAAIZ_API_URL=https://api-dev.blaaiz.com
```

```
use Blaaiz\LaravelSdk\Facades\Blaaiz;

$isConnected = Blaaiz::testConnection();
$currencies = Blaaiz::currencies()->list();
```

### Legacy API key

[](#legacy-api-key)

You can also authenticate with a legacy API key:

```
BLAAIZ_API_KEY=your-api-key
BLAAIZ_API_URL=https://api-dev.blaaiz.com
```

```
use Blaaiz\LaravelSdk\Facades\Blaaiz;

$isConnected = Blaaiz::testConnection();
$wallets = Blaaiz::wallets()->list();
```

When both OAuth credentials and an API key are configured, OAuth is used.

### Publish configuration

[](#publish-configuration)

```
php artisan vendor:publish --tag=blaaiz-config
```

### Basic usage with dependency injection

[](#basic-usage-with-dependency-injection)

```
use Blaaiz\LaravelSdk\Blaaiz;

class RatesController
{
    public function __invoke(Blaaiz $blaaiz)
    {
        return response()->json($blaaiz->rates()->list());
    }
}
```

Configuration
-------------

[](#configuration)

The published config file exposes these options:

```
return [
    'api_key' => env('BLAAIZ_API_KEY', ''),
    'client_id' => env('BLAAIZ_CLIENT_ID', ''),
    'client_secret' => env('BLAAIZ_CLIENT_SECRET', ''),
    'oauth_scope' => env('BLAAIZ_OAUTH_SCOPE', ''),
    'base_url' => env('BLAAIZ_API_URL', 'https://api-dev.blaaiz.com'),
    'timeout' => env('BLAAIZ_TIMEOUT', 30),
    'webhook_secret' => env('BLAAIZ_WEBHOOK_SECRET', ''),
];
```

Available Services
------------------

[](#available-services)

- `customers()`
- `collections()`
- `payouts()`
- `wallets()`
- `virtualBankAccounts()`
- `transactions()`
- `banks()`
- `currencies()`
- `fees()`
- `files()`
- `webhooks()`
- `rates()`
- `swaps()`

These services are also exposed as public properties on the underlying SDK instance.

Common Examples
---------------

[](#common-examples)

### Create a customer

[](#create-a-customer)

```
use Blaaiz\LaravelSdk\Facades\Blaaiz;

$customer = Blaaiz::customers()->create([
    'first_name' => 'John',
    'last_name' => 'Doe',
    'type' => 'individual',
    'email' => 'john.doe@example.com',
    'country' => 'NG',
    'id_type' => 'passport',
    'id_number' => 'A12345678',
]);
```

### List customers (with optional filters and pagination)

[](#list-customers-with-optional-filters-and-pagination)

```
$customers = Blaaiz::customers()->list();

// With filters. Supported keys: email, id_number, registration_number,
// verification_status, type. Set `paginate => true` to receive a paginated
// response that includes `links` and `meta` (current_page, total, ...).
$verified = Blaaiz::customers()->list([
    'email' => 'john@example.com',
    'verification_status' => 'VERIFIED',
    'type' => 'individual',
    'paginate' => true,
]);
```

### Initiate a payout

[](#initiate-a-payout)

```
$payout = Blaaiz::payouts()->initiate([
    'wallet_id' => 'wallet-id',
    'customer_id' => 'customer-id',
    'method' => 'bank_transfer',
    'from_currency_id' => 'USD',
    'to_currency_id' => 'NGN',
    'from_amount' => 100,
    'bank_id' => 'bank-id',
    'account_number' => '0123456789',
]);
```

### Upload a KYC document

[](#upload-a-kyc-document)

```
$result = Blaaiz::customers()->uploadFileComplete('customer-id', [
    'file' => storage_path('app/private/passport.pdf'),
    'file_category' => 'identity',
]);
```

### Verify a webhook

[](#verify-a-webhook)

```
$event = Blaaiz::webhooks()->constructEvent(
    $request->getContent(),
    $request->header('X-Blaaiz-Signature', ''),
    $request->header('X-Blaaiz-Timestamp', ''),
    config('blaaiz.webhook_secret')
);
```

API Reference
-------------

[](#api-reference)

- [Root SDK helpers](docs/root-sdk.md)
- [Customers](docs/customers.md)
- [Collections](docs/collections.md)
- [Payouts](docs/payouts.md)
- [Wallets and virtual bank accounts](docs/wallets-and-vbas.md)
- [Transactions, banks, currencies, and rates](docs/transactions-banks-currencies-rates.md)
- [Fees and files](docs/fees-files.md)
- [Webhooks](docs/webhooks.md)
- [Swaps](docs/swaps.md)

Runnable Examples
-----------------

[](#runnable-examples)

See [examples/README.md](examples/README.md) for Laravel-oriented example classes and snippets.

High-Level Helpers
------------------

[](#high-level-helpers)

The root SDK object includes:

- `testConnection()`
- `createCompletePayout(array $config)`
- `createCompleteCollection(array $config)`

These helpers compose the lower-level services for common workflows.

Error Handling
--------------

[](#error-handling)

```
use Blaaiz\LaravelSdk\Exceptions\BlaaizException;
use Blaaiz\LaravelSdk\Facades\Blaaiz;

try {
    $rates = Blaaiz::rates()->list();
} catch (BlaaizException $e) {
    report($e);

    return response()->json($e->toArray(), $e->getStatus() ?? 500);
}
```

Development
-----------

[](#development)

```
composer test
composer analyse
composer format
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance92

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.6% 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.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~32 days

Total

9

Last Release

39d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30432941?v=4)[Gbenga Oni](/maintainers/gbxnga)[@gbxnga](https://github.com/gbxnga)

---

Top Contributors

[![gbxnga](https://avatars.githubusercontent.com/u/30432941?v=4)](https://github.com/gbxnga "gbxnga (31 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (4 commits)")

---

Tags

apilaravelsdkcollectionpaymentscryptocurrencyfintechpayoutOpen Bankingbank transferinteracblaaizremittanceraas

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/blaaiz-blaaiz-laravel-sdk/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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