PHPackages                             hellofromsteve/hubtel - 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. [Payment Processing](/categories/payments)
4. /
5. hellofromsteve/hubtel

ActiveLibrary[Payment Processing](/categories/payments)

hellofromsteve/hubtel
=====================

A Laravel Package for Hubtel payment integration for Laravel 11, 12, and 13

v1.1.1(1mo ago)0386↓81.8%MITPHPPHP ^8.1

Since Dec 10Pushed 7mo agoCompare

[ Source](https://github.com/hellofromsteve/hubtel)[ Packagist](https://packagist.org/packages/hellofromsteve/hubtel)[ RSS](/packages/hellofromsteve-hubtel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (6)Used By (0)

Laravel Hubtel Package
======================

[](#laravel-hubtel-package)

A simple Laravel package for integrating Hubtel payments into your Laravel 11 and Above application.

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

[](#installation)

```
composer require hellofromsteve/hubtel
```

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

[](#configuration)

Publish the configuration file:

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

Add your hubtel credentials to your `.env` file:

```
HUBTEL_API_KEY=************
HUBTEL_API_SECRET=****************
HUBTEL_MERCHANT_ACCOUNT_ID=**************

# Local Testing Callback
LOCAL_HUBTEL_CALLBACK_URL="(you can use webhook.site to get a url for local testing)"

#Recommended
HUBTEL_CALLBACK_URL="${APP_URL}/payment/callback"
HUBTEL_RETURN_URL="${APP_URL}/payment/return"
HUBTEL_CANCELLED_URL="${APP_URL}/payment/cancel"
```

### You can set the endpoints in the config after publishing there

[](#you-can-set-the-endpoints-in-the-config-after-publishing-there)

Usage
-----

[](#usage)

### Using the Helper Function

[](#using-the-helper-function)

```
// Or use helper function and chain methods directly
hubtel()

$transaction = hubtel()->initialize([
   'totalAmount' => 100,
   'description' => 'payment for service',

]);
```

// These defaults are set in the initialize() method and then merged to your $payload

// The can be overwritten

```
 $defaults = [
            'callbackUrl'           => config('hubtel.callback_url'),
            'returnUrl'             => config('hubtel.return_url'),
            'cancellationUrl'       => config('hubtel.cancelled_url'),
            'merchantAccountNumber' => config('hubtel.merchant_account_number'),
            'clientReference'       => (string) \Illuminate\Support\Str::uuid(),
        ];
```

```

## Available Methods

- `initialize(array $finalPayload)` - Initiate a payment
- `status(array $payload)` - Get transaction status

## More Methods
More methods will be updated soon

## License

MIT
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance77

Regular maintenance activity

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~53 days

Total

5

Last Release

30d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad63f515427a7f3f34d8c23c8344f91fec1cba8ef7c8cb98da769b42c7990970?d=identicon)[hellofromsteve](/maintainers/hellofromsteve)

---

Top Contributors

[![hellofromsteve](https://avatars.githubusercontent.com/u/131690895?v=4)](https://github.com/hellofromsteve "hellofromsteve (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hellofromsteve-hubtel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M206](/packages/laravel-mcp)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k1](/packages/mike-bronner-laravel-model-caching)[illuminate/auth

The Illuminate Auth package.

9328.5M1.3k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1239.4M3.4k](/packages/illuminate-routing)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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