PHPackages                             inlomax/inlomax-php - 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. inlomax/inlomax-php

ActiveLibrary

inlomax/inlomax-php
===================

The official PHP SDK for the Inlomax API

00PHP

Since Aug 16Pushed yesterdayCompare

[ Source](https://github.com/nelson-itodo/inlomax-php-sdk)[ Packagist](https://packagist.org/packages/inlomax/inlomax-php)[ RSS](/packages/inlomax-inlomax-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Inlomax PHP SDK
===============

[](#inlomax-php-sdk)

The official PHP SDK for the [Inlomax API](https://inlomax.com/docs). This SDK makes it easy for developers to integrate Inlomax services like Airtime, Data, Cable TV, Electricity, Education Pins, and KYC verifications into their PHP applications.

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

[](#requirements)

- PHP &gt;= 7.4
- Composer

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

[](#installation)

You can install the package via composer:

```
composer require inlomax/inlomax-php
```

*(Note: Until published on Packagist, you can install it locally by configuring a local composer repository).*

Usage
-----

[](#usage)

### Initialization

[](#initialization)

Initialize the client with your API key. You can find your API key in your Inlomax developer dashboard.

```
require_once 'vendor/autoload.php';

use Inlomax\Inlomax\Client;

// Provide your API Key. Set the second parameter to true if you are using the sandbox environment.
$apiKey = 'YOUR_API_KEY';
$isSandbox = false;

$inlomax = new Client($apiKey, $isSandbox);
```

### Get Wallet Balance

[](#get-wallet-balance)

```
try {
    $response = $inlomax->getBalance();
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Buy Airtime

[](#buy-airtime)

```
try {
    $payload = [
        "serviceID" => "100", // Check services endpoint for IDs
        "amount" => 200,
        "mobileNumber" => "0903837261",
        "request-id" => uniqid() // Ensure this is unique per transaction
    ];
    $response = $inlomax->buyAirtime($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Buy Data

[](#buy-data)

```
try {
    $payload = [
        "serviceID" => "100",
        "mobileNumber" => "0903837261",
        "request-id" => uniqid()
    ];
    $response = $inlomax->buyData($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Pay for Electricity

[](#pay-for-electricity)

```
try {
    $payload = [
        "serviceID" => "1",
        "amount" => 1000,
        "meterNumber" => "11111111111", // Example field, check API docs for exact fields required
        "request-id" => uniqid()
    ];
    $response = $inlomax->buyElectricity($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Pay for Cable TV

[](#pay-for-cable-tv)

```
try {
    $payload = [
        "serviceID" => "2", // Check API docs for exact IDs
        "smartCardNumber" => "1234567890", // Example field, check API docs
        "request-id" => uniqid()
    ];
    $response = $inlomax->buyCable($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Buy Education Pins

[](#buy-education-pins)

```
try {
    $payload = [
        "serviceID" => "3", // Check API docs for exact IDs
        "quantity" => 1, // Example field, check API docs
        "request-id" => uniqid()
    ];
    $response = $inlomax->buyEducationPins($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Verify Meter Number

[](#verify-meter-number)

```
try {
    $payload = [
        "meterNumber" => "11111111111",
        "disco" => "ikeja", // Example disco, check API docs
        "meterType" => "prepaid"
    ];
    $response = $inlomax->verifyMeter($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Verify Cable IUC

[](#verify-cable-iuc)

```
try {
    $payload = [
        "smartCardNumber" => "1234567890",
        "provider" => "dstv" // Example provider, check API docs
    ];
    $response = $inlomax->verifyIuc($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Get Services

[](#get-services)

```
try {
    $response = $inlomax->getServices();
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Verify Bank Account

[](#verify-bank-account)

```
try {
    $payload = [
        "accountNumber" => "0123456789",
        "bankCode" => "033" // Check API docs for bank codes
    ];
    $response = $inlomax->verifyBankAccount($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Verify BVN

[](#verify-bvn)

```
try {
    $payload = [
        "bvn" => "12345678901"
    ];
    $response = $inlomax->verifyBvn($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Verify NIN

[](#verify-nin)

```
try {
    $payload = [
        "nin" => "12345678901"
    ];
    $response = $inlomax->verifyNin($payload);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

### Get Transaction

[](#get-transaction)

```
try {
    $reference = "your_transaction_reference";
    $response = $inlomax->getTransaction($reference);
    print_r($response);
} catch (\Inlomax\Inlomax\Exceptions\InlomaxException $e) {
    echo "Error: " . $e->getMessage();
}
```

Available Methods
-----------------

[](#available-methods)

- `getBalance()`
- `getServices()`
- `buyAirtime(array $payload)`
- `buyData(array $payload)`
- `buyCable(array $payload)`
- `buyElectricity(array $payload)`
- `buyEducationPins(array $payload)`
- `verifyBankAccount(array $payload)`
- `verifyBvn(array $payload)`
- `verifyNin(array $payload)`
- `verifyIuc(array $payload)`
- `verifyMeter(array $payload)`
- `getTransaction(string $reference)`

Support
-------

[](#support)

For any difficulty integrating the API, please refer to the [official documentation](https://inlomax.com/docs) or contact support.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

20

↑

LowBetter than 12% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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/a1a0fa659d33cc90236020228583c00fd9ea4865ebedb6bae132d1b3194d4db7?d=identicon)[nelsonitodo](/maintainers/nelsonitodo)

---

Top Contributors

[![nelson-itodo](https://avatars.githubusercontent.com/u/146782035?v=4)](https://github.com/nelson-itodo "nelson-itodo (1 commits)")

### Embed Badge

![Health badge](/badges/inlomax-inlomax-php/health.svg)

```
[![Health](https://phpackages.com/badges/inlomax-inlomax-php/health.svg)](https://phpackages.com/packages/inlomax-inlomax-php)
```

PHPackages © 2026

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