PHPackages                             gashey/laravel-mobiverse-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. [API Development](/categories/api)
4. /
5. gashey/laravel-mobiverse-ussd

ActiveLibrary[API Development](/categories/api)

gashey/laravel-mobiverse-ussd
=============================

Mobiverse USSD plugin for easy integration into Laravel projects

0.0.2(6y ago)07MITPHPPHP &gt;=7.1.3CI failing

Since Nov 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gashey/laravel-mobiverse-ussd)[ Packagist](https://packagist.org/packages/gashey/laravel-mobiverse-ussd)[ Docs](https://github.com/gashey/laravel-mobiverse-ussd)[ RSS](/packages/gashey-laravel-mobiverse-ussd/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Mobiverse USSD plugin for Laravel
=================================

[](#mobiverse-ussd-plugin-for-laravel)

[![Latest Release on GitHub](https://camo.githubusercontent.com/e66e08c70696169849e01c6c82d32e4f40dfd206cde9260a134190fe65c3985d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6761736865792f6c61726176656c2d6d6f626976657273652d757373642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gashey/laravel-mobiverse-ussd)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/98a6d837b78c9cf0e205876c93163d839cee836e156241b63c41c70b49ad33bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6761736865792f6c61726176656c2d6d6f626976657273652d757373642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gashey/laravel-mobiverse-ussd)

About
-----

[](#about)

This is a package to help you integrate the Mobiverse USSD service into your Laravel application. Users will be able to access your application on USSD with codes like **\*1234#** from their phones.

This package uses code from  created by Victor James Owusu.

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

[](#installation)

Require the `gashey/laravel-mobiverse-ussd` package in your `composer.json` and update your dependencies:

```
$ composer require gashey/laravel-mobiverse-ussd
```

Add the LaravelMobiverseUssd\\UssdServiceProvider to your `providers` array:

```
Gashey\LaravelMobiverseUssd\ServiceProvider::class,
```

Usage
-----

[](#usage)

Your application should now have an endpoint for USSD access. You can use the [Mobiverse USSD Simulator](https://apps.mobivs.com/USSDSIM/) to test your application. Supply your application url as:

Customization
-------------

[](#customization)

A simple USSD flow comes with this plugin so you can immediately test to see if your setup is working. You can create custom USSD flows by creating `Activities`. Start by creating a new folder in your `app` directory called `USSD`. This is where you will store all your USSD related logic.

A USSD activity is just a `php` class that extends the `UssdActivity` class. An example of an activity class is below:

```
namespace App\Ussd\Activities;

use App\Ussd\Activities\MenuSelection;
use Gashey\LaravelMobiverseUssd\Lib\UssdActivity;
use Gashey\LaravelMobiverseUssd\Lib\UssdResponse;

class HomeActivity extends UssdActivity
{
    public function run() {
        $this->response->Type = UssdResponse::RELEASE;
        $this->response->Message = 'Ussd is working!';
        return $this;
    }

    public function next() {
        return MenuSelection::class;
    }

}
```

An activity class must implement 2 methods: `run()` and `next()`.

The `run()` method is the main entry point for the activity and must always return `$this`.

The `next()` must return a reference to the next activity to be executed. You can do this by simply returning a string with the full namespace of the next activity class or you can use the `::class` approach to have php resolve it for you.

You have access to the current request `$this->request`, the response to be sent `$this->response`, and the current USSD session `$this->session` from within the activity.

The request and response properties exposes all the properties of a USSD request and response respectively.

The session property is an array. Note that the session is implemented on top of your existing Laravel cache. It allows you to persist state throughout your USSD session. You can store a value in the session like so: `$this->session['name'] = 'Jane Deer'`, and retrieve it elsewhere like so: `$name = $this->session['name']`.

Once you have created your activiy files, you need to set your entry point activity in the config file as shown in the next section.

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

[](#configuration)

The defaults are set in `config/ussd.php`. Publish the config using this command:

```
$ php artisan vendor:publish --provider="Gashey\LaravelMobiverseUssd\UssdServiceProvider"
```

```
return [
    "home" => \App\Ussd\Activities\HomeActivity::class
];
```

License
-------

[](#license)

Released under the MIT License, see [LICENSE](LICENSE).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

2379d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52868887?v=4)[George Kofi Hagan](/maintainers/gashey)[@gashey](https://github.com/gashey)

---

Top Contributors

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

---

Tags

phppluginlaravelussdmobiverse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gashey-laravel-mobiverse-ussd/health.svg)

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

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)[wxm/pdd-sdk

拼多多 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

154.7k](/packages/wxm-pdd-sdk)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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