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

ActiveLibrary

seerbit/seerbit-laravel
=======================

SeerBit Laravel Library

v2.0.3(2y ago)21905[1 issues](https://github.com/seerbit/seerbit-laravel/issues)[1 PRs](https://github.com/seerbit/seerbit-laravel/pulls)MITHTMLPHP ^8.0CI failing

Since Aug 12Pushed 6mo agoCompare

[ Source](https://github.com/seerbit/seerbit-laravel)[ Packagist](https://packagist.org/packages/seerbit/seerbit-laravel)[ Docs](https://github.com/seerbit/seerbit-laravel)[ RSS](/packages/seerbit-seerbit-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

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

 [![](https://camo.githubusercontent.com/add54281c9fb74f167b2c1f1e13468346d6ef8885dc90eb7036e09b579462947/68747470733a2f2f6c61726176656c2e636f6d2f696d672f6c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/add54281c9fb74f167b2c1f1e13468346d6ef8885dc90eb7036e09b579462947/68747470733a2f2f6c61726176656c2e636f6d2f696d672f6c6f676f6d61726b2e6d696e2e737667)
==================================================================================================================================================================================================================================================================================================================================================================================

[](#--)

SeerBit's API SDK for Laravel
=============================

[](#seerbits-api-sdk-for-laravel)

SeerBit PHP SDK for easy integration with SeerBit's API.

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

[](#requirements)

This package can be used with Laravel 5.8 or higher PHP 8.0 or higher

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

[](#installation)

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-laravel
```

The service provider will automatically register itself.

You can publish the config file with:

```
 php artisan vendor:publish --provider="SeerbitLaravel\SeerbitServiceProvider" --tag="config"
```

This is the contents of the config file that will be published to your app's directory path `config/seerbit.php`:

```
return [
    'environment' => env('SEERBIT_ENVIRONMENT', \Seerbit\Environment::LIVE),
    'public_key' => env('SEERBIT_PUBLIC_KEY'),
    'secret_key' => env('SEERBIT_SECRET_KEY'),
    'token' => env('SEERBIT_TOKEN'),
];
```

You can find both public and secret keys from your merchant dashboard.

The token can be generated following the guides [here](https://doc.seerbit.com/getstarted/authentication)

Replace them by changes the key values in your **.env** file.

Open your .env file and add your public key, secret key and token:

```
SEERBIT_PUBLIC_KEY=xxxxxxxxxxxxx
SEERBIT_SECRET_KEY=xxxxxxxxxxxxx
SEERBIT_TOKEN=xxxxxxxxxxxxx
```

*If you are using a cloud hosting service such as lambda, etc, you may need to add the above details to your environment variables section.*

```
ENSURE YOU DO NOT PUBLISH YOUR ENV FILE TO YOUR GIT REPOSITORY

```

Usage
-----

[](#usage)

### Standard checkout

[](#standard-checkout)

```
namespace App\Http\Controllers;

use SeerbitLaravel\Facades\Seerbit;

class Standard
{
    public function Checkout(){
        try {
            $uuid = bin2hex(random_bytes(6));
            $transaction_ref = strtoupper(trim($uuid));

            $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",
                "fullName" => "John Doe",
                "tokenize" => true //optional
            ];

            // Initialize the payment with the Facade
            // Or with Facade
            $trans = SeerBit::Standard()->Initialize($payload);

            // You can get your redirect link for customer payment from $tran
            $redirectLink = $trans['data']['payments']['redirectLink'];

            //  Redirect to this link in order to complete the transaction
            if (!empty($redirectLink)) {
                return redirect($redirectLink)->with("status", $trans['data']['message']);
            } else {
                //  Something went wrong while initiating the transaction
                return redirect()->back()->with('error', $trans['data']['message']);
            }

        } catch (\Exception $e){
        //    Handle exception handling
        }
    }
}
```

Full documentation can be found [**here**](https://seerbit.github.io/seerbit-laravel)

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

[](#configure-logger)

```
//Set Logger path in environment config file
SEERBIT_LOGGER_PATH = ""
```

API Documentation
-----------------

[](#api-documentation)

-

### Changelog

[](#changelog)

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

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

[](#contributing)

We strongly 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

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Victor Osas Ighalo](https://github.com/victorighalo)
- [Emmanuel Ajiboye](https://github.com/Emitoz)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~330 days

Total

5

Last Release

775d ago

Major Versions

1.0 → 2.0.02023-02-28

PHP version history (2 changes)1.0PHP ^7.1.3

2.0.0PHP ^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 (12 commits)")[![victorighalo](https://avatars.githubusercontent.com/u/12658331?v=4)](https://github.com/victorighalo "victorighalo (7 commits)")[![Emitoz](https://avatars.githubusercontent.com/u/10027843?v=4)](https://github.com/Emitoz "Emitoz (6 commits)")[![henry2100](https://avatars.githubusercontent.com/u/63110237?v=4)](https://github.com/henry2100 "henry2100 (1 commits)")[![Leoactionz](https://avatars.githubusercontent.com/u/47278525?v=4)](https://github.com/Leoactionz "Leoactionz (1 commits)")

---

Tags

paymentspayment gatewayseerbitseerbit-laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[razorpay/magento

Razorpay Magento 2.0 plugin for accepting payments.

3076.5k1](/packages/razorpay-magento)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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