PHPackages                             cybersai/ussd-decision - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cybersai/ussd-decision

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cybersai/ussd-decision
======================

Making chained decision using an object class

v0.1.0(6y ago)17MITPHPCI failing

Since Mar 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/CyberSai/ussd-decision)[ Packagist](https://packagist.org/packages/cybersai/ussd-decision)[ RSS](/packages/cybersai-ussd-decision/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

UssdDecision
============

[](#ussddecision)

[![Packagist Version](https://camo.githubusercontent.com/7aeef75ea9899c2f4573675a6c6ddaaf3ba3cd88250e981b69207d585c8b04aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63796265727361692f757373642d6465636973696f6e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/cybersai/ussd-decision)[![Travis (.com)](https://camo.githubusercontent.com/b243604bac0bafd80b486eb3e317443a3e2b62483e343943efa1c1c67353952f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63796265727361692f757373642d6465636973696f6e3f7374796c653d666f722d7468652d6261646765)](https://travis-ci.com/cybersai/ussd-decision)[![GitHub repo size](https://camo.githubusercontent.com/082bee31cf2372cf6f1f7de3932f6fc71c6f36a70b1fd7ebdb31ac33aceba817/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f63796265727361692f757373642d6465636973696f6e3f7374796c653d666f722d7468652d6261646765)](https://github.com/CyberSai/ussd-decision)[![GitHub](https://camo.githubusercontent.com/3fc3c5eaf80e6faaf26a60947ed31756c7cf3698341b5cc66ab1fa710bdb13d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63796265727361692f757373642d6465636973696f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/3fc3c5eaf80e6faaf26a60947ed31756c7cf3698341b5cc66ab1fa710bdb13d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63796265727361692f757373642d6465636973696f6e3f7374796c653d666f722d7468652d6261646765)

Making decision using an Object Oriented Decision fallback

No Real Documentation for now, but for now you can [read the tests](https://github.com/cybersai/ussd-decision/blob/master/tests/UssdDecisionTest.php).

```
include 'vendor/autoload.php';

use Cybersai\UssdDecision\UssdDecision;

echo UssdDecision::using('0241122331') // Argument to use for decision making
    ->integer('It an integer') // Return this is the argument is an integer
    ->equal('0241122442', 'It my Number') // Return this is the argument is equal to the parameter given
    ->in(['05451111111', '05452222222'], 'It a schools line') // Return this is the argument is array provider
    ->length(6, 'Too short') // Return this is the argument length is 6
    ->phoneNumber('It a phone number') // Return this is the argument is a valid phone number
    ->any('Did not match any') // Just return this
    ->outcome(); // Give the outcome of the decision chain
```

```
// Output
It a phone number

```

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

[](#installation)

`composer require cybersai/ussd-decision`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

2250d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26746368?v=4)[Isaac Sai](/maintainers/CyberSai)[@cybersai](https://github.com/cybersai)

---

Top Contributors

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

---

Tags

decisionussd

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cybersai-ussd-decision/health.svg)

```
[![Health](https://phpackages.com/badges/cybersai-ussd-decision/health.svg)](https://phpackages.com/packages/cybersai-ussd-decision)
```

PHPackages © 2026

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