PHPackages                             moffhub/ussd - 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. [Framework](/categories/framework)
4. /
5. moffhub/ussd

ActiveLibrary[Framework](/categories/framework)

moffhub/ussd
============

Enterprise USSD framework for Laravel. Multi-provider support (Safaricom, Airtel, MTN), session management, menu builders, form collection, pagination, security, analytics, and i18n for African mobile networks.

v0.1.6(2mo ago)0599MITPHPPHP ^8.4 || ^8.5

Since Jan 26Pushed 2mo agoCompare

[ Source](https://github.com/Moffhub-Solutions/ussd_library)[ Packagist](https://packagist.org/packages/moffhub/ussd)[ Docs](https://github.com/moffhub/ussd)[ RSS](/packages/moffhub-ussd/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (7)Dependencies (16)Versions (10)Used By (0)

Moffhub USSD Framework
======================

[](#moffhub-ussd-framework)

A powerful, enterprise-grade Laravel package for building scalable USSD applications with support for multiple African mobile network providers.

Features
--------

[](#features)

- **Multi-Provider Support**: Built-in adapters for Safaricom/Africa's Talking, Airtel, MTN, and a generic fallback
- **Menu System**: Simple menus, forms, paginated lists, conditional menus, and multi-step wizards
- **Session Management**: Intelligent session recovery, grace periods, and context preservation
- **Security**: Rate limiting, input sanitization, audit logging, and blacklist/whitelist support
- **Analytics**: Track user journeys, menu interactions, and performance metrics
- **Caching**: Efficient caching layer for menus and data providers
- **Data Providers**: Pluggable data sources (Array, Database, API)

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

[](#requirements)

- PHP 8.4+
- Laravel 12.0+

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

[](#installation)

```
composer require moffhub/ussd
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Moffhub\Ussd\UssdServiceProvider"
```

Run migrations (optional, for session persistence and analytics):

```
php artisan migrate
```

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

[](#quick-start)

### 1. Create a USSD Controller

[](#1-create-a-ussd-controller)

```
