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

ActiveLibrary[API Development](/categories/api)

seerbit/seerbit-php-sdk
=======================

SeerBit PHP Library

2.3.6(3y ago)24.5k4[1 issues](https://github.com/seerbit/seerbit-php-sdk/issues)[1 PRs](https://github.com/seerbit/seerbit-php-sdk/pulls)2MITPHPPHP ^8.0

Since May 30Pushed 3y agoCompare

[ Source](https://github.com/seerbit/seerbit-php-sdk)[ Packagist](https://packagist.org/packages/seerbit/seerbit-php-sdk)[ Docs](https://seerbit.com)[ RSS](/packages/seerbit-seerbit-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (2)

 [![](https://camo.githubusercontent.com/bf7adf5dced052b5cd53292cd3aed1113992de935be64f2a57ca5a2692ff7709/68747470733a2f2f6173736574732e736565726269746170692e636f6d2f696d616765732f736565726269745f6c6f676f5f747970652e706e67)](https://camo.githubusercontent.com/bf7adf5dced052b5cd53292cd3aed1113992de935be64f2a57ca5a2692ff7709/68747470733a2f2f6173736574732e736565726269746170692e636f6d2f696d616765732f736565726269745f6c6f676f5f747970652e706e67)

SeerBit PHP Library
===================

[](#seerbit-php-library)

This library provides convenient access to the SeerBit API from PHP based applications. It provides Utility classses to access API resources on SeerBit.

Integration
-----------

[](#integration)

The Library supports all APIs under the following services:

- Standard Checkout
- Payment via Card and Bank Account
- Recurrent transactions
- Card Tokenization
- Pre-authorized payment
- Order Payments
- Mobile Money Payments
- Transaction Validation

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

[](#requirements)

PHP 8

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

[](#installation)

You can use Composer or simply Download the Release

### Composer

[](#composer)

The preferred method is via [composer](https://getcomposer.org). Follow the composer [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

```
composer require seerbit/seerbit-php-sdk
```

### Find examples [**here**](./src/Examples)

[](#find-examples-here)

#### Example 1 : Start a Standard transaction

[](#example-1--start-a-standard-transaction)

```
try{
    $token = "YOUR MERCHANT TOKEN";
    //Instantiate SeerBit Client
    $client = new Client();

    //Configure SeerBit Client
    $client->setToken($token);

    //SETUP CREDENTIALS
    $client->setPublicKey("MERCHANT_PUBLIC_KEY"); //REQUIRED
    $client->setSecretKey("MERCHANT_SECRET_KEY"); //OPTIONAL

    //Instantiate Resource Service
    $standard_service =  New StandardService($client);
    $uuid = bin2hex(random_bytes(6));
    $transaction_ref = strtoupper(trim($uuid));

    //the order of placement is important
    $payload = [
        "amount" => "1000",
        "callbackUrl" => "http:yourwebsite.com",
        "country" => "NG",
        "currency" => "NGN",
        "email" => "customer@email.com",
        "paymentReference" => $transaction_ref,
        "productDescription" => "product_description",
        "productId" => "64310880-2708933-427",
        "tokenize" => true //optional
    ];

    $transaction = $standard_service->Initialize($payload);

    echo($transaction->toJson());

}catch (\Exception $exception){
    echo $exception->getMessage();
}
```

### Find more examples [**here**](./src/Examples)

[](#find-more-examples-here)

How to Generate a Token?

```
curl --location 'https://seerbitapi.com/api/v2/encrypt/keys' \
--header 'Content-Type: application/json' \
--data '{
	"key": "merchantSecretKey.merchantPublicKey"
}'

```

Generate Token Response

```
{
	"status": "SUCCESS",
	"data": {
			"code": "00",
			"EncryptedSecKey": {
					"encryptedKey": "SNt8kjeVjsdTG4lPlwg6sTvpVAay2RA7hoCEzHPkIQa+MNfDepx4VBr5JMgLb5Q5anq9XoN2pXU850bumqBWFVw1T1ZW5w8N+Sq/"
			},
			"message": "Successful"
	}
}

```

Configure Logger
----------------

[](#configure-logger)

```
//Set Logger path
$client->setLoggerPath(dirname(__FILE__));

//Set custom Logger
$client->setLogger = $->CustomLoggerService();
```

Documentation
-------------

[](#documentation)

-

Examples
--------

[](#examples)

[**Examples**](./src/Examples)

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Support
-------

[](#support)

If you have any problems, questions or suggestions, create an issue here or send your inquiry to .

Contributing
------------

[](#contributing)

We encourage you to join us in contributing to this repository so everyone can benefit from:

- New features and functionality
- Resolved bug fixes and issues
- Any general improvements

Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how.

Licence
-------

[](#licence)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~86 days

Recently: every ~9 days

Total

13

Last Release

1139d ago

Major Versions

1.0.0 → 2.0.02020-08-04

v1.x-dev → v2.3.02021-02-09

PHP version history (2 changes)1.0.0PHP &gt;=5.5.0

v2.x-devPHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c40da1c4484fb0f73032c929fab8085e455420e688b6ee2176dda397897254a?d=identicon)[seerbit](/maintainers/seerbit)

---

Top Contributors

[![seerbit-developers](https://avatars.githubusercontent.com/u/74198009?v=4)](https://github.com/seerbit-developers "seerbit-developers (14 commits)")[![victorighalo](https://avatars.githubusercontent.com/u/12658331?v=4)](https://github.com/victorighalo "victorighalo (9 commits)")[![Leoactionz](https://avatars.githubusercontent.com/u/47278525?v=4)](https://github.com/Leoactionz "Leoactionz (2 commits)")[![henry2100](https://avatars.githubusercontent.com/u/63110237?v=4)](https://github.com/henry2100 "henry2100 (1 commits)")

---

Tags

payment-gatewaypayment-integrationphpphp-libraryseerbitapipaymentpayment gatewayseerbitpayment nigeria

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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