├── .github └── workflows │ └── php.yml ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── composer.json ├── composer.lock ├── phpunit.xml ├── src ├── Commands │ ├── AuditSession.php │ ├── CleanUp.php │ ├── Install.php │ ├── ListUserTransactions.php │ ├── MakeScreenFactory.php │ ├── MakeUssd.php │ ├── MonitorPayload.php │ └── Update.php ├── Exceptions │ ├── UssdException.php │ └── ValidationException.php ├── Factories │ ├── EntryScreenFactory.php │ ├── RequestFactory.php │ ├── ResponseFactory.php │ └── ScreenFactory.php ├── Http │ ├── Controller.php │ ├── Flares │ │ ├── FlaresRequest.php │ │ ├── FlaresResponse.php │ │ └── response.xml │ ├── Request.php │ ├── Response.php │ ├── TruRoute │ │ ├── TruRouteRequest.php │ │ ├── TruRouteResponse.php │ │ └── response.xml │ ├── UssdRequestInterface.php │ ├── UssdResponseInterface.php │ ├── Validates.php │ └── XMLResponse.php ├── Models │ ├── AbstractPayload.php │ ├── AbstractSession.php │ ├── AbstractTransactionTrail.php │ ├── HistoricalPayload.php │ ├── HistoricalSession.php │ ├── HistoricalSessionNumber.php │ ├── HistoricalTransactionTrail.php │ ├── Payload.php │ ├── Session.php │ ├── SessionNumber.php │ └── TransactionTrail.php ├── Observers │ ├── PayloadObserver.php │ ├── SessionNumberObserver.php │ ├── SessionObserver.php │ └── TransactionTrailObserver.php ├── Screen.php ├── Screens │ ├── Error.php │ ├── ValidationFailure.php │ └── Welcome.php ├── Traits │ └── HasBundledOptions.php ├── UssdServiceProvider.php ├── config │ └── ussd.php ├── database │ └── migrations │ │ ├── create_historical_payloads_table.php │ │ ├── create_historical_session_numbers_table.php │ │ ├── create_historical_sessions_table.php │ │ ├── create_historical_transaction_trails_table.php │ │ ├── create_payloads_table.php │ │ ├── create_session_numbers_table.php │ │ ├── create_sessions_table.php │ │ └── create_transaction_trails_table.php ├── routes │ └── api.php ├── stubs │ ├── factory.stub │ └── screen.stub └── translations │ └── en │ └── nav.php └── tests ├── Feature ├── FlaresAdaptorTest.php └── TruRouteAdapterTest.php ├── Requests ├── FlaresTestRequest.php ├── TruRouteTestRequest.php ├── XMLRequest.php ├── flares.request.xml └── tru.route.request.xml ├── TestCase.php └── Unit └── ControllerTest.php /.github/workflows/php.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/.github/workflows/php.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .env 3 | vendor 4 | .phpunit.result.cache 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Commands/AuditSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/AuditSession.php -------------------------------------------------------------------------------- /src/Commands/CleanUp.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/CleanUp.php -------------------------------------------------------------------------------- /src/Commands/Install.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/Install.php -------------------------------------------------------------------------------- /src/Commands/ListUserTransactions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/ListUserTransactions.php -------------------------------------------------------------------------------- /src/Commands/MakeScreenFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/MakeScreenFactory.php -------------------------------------------------------------------------------- /src/Commands/MakeUssd.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/MakeUssd.php -------------------------------------------------------------------------------- /src/Commands/MonitorPayload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/MonitorPayload.php -------------------------------------------------------------------------------- /src/Commands/Update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Commands/Update.php -------------------------------------------------------------------------------- /src/Exceptions/UssdException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Exceptions/UssdException.php -------------------------------------------------------------------------------- /src/Exceptions/ValidationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Exceptions/ValidationException.php -------------------------------------------------------------------------------- /src/Factories/EntryScreenFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Factories/EntryScreenFactory.php -------------------------------------------------------------------------------- /src/Factories/RequestFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Factories/RequestFactory.php -------------------------------------------------------------------------------- /src/Factories/ResponseFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Factories/ResponseFactory.php -------------------------------------------------------------------------------- /src/Factories/ScreenFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Factories/ScreenFactory.php -------------------------------------------------------------------------------- /src/Http/Controller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Controller.php -------------------------------------------------------------------------------- /src/Http/Flares/FlaresRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Flares/FlaresRequest.php -------------------------------------------------------------------------------- /src/Http/Flares/FlaresResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Flares/FlaresResponse.php -------------------------------------------------------------------------------- /src/Http/Flares/response.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Flares/response.xml -------------------------------------------------------------------------------- /src/Http/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Request.php -------------------------------------------------------------------------------- /src/Http/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Response.php -------------------------------------------------------------------------------- /src/Http/TruRoute/TruRouteRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/TruRoute/TruRouteRequest.php -------------------------------------------------------------------------------- /src/Http/TruRoute/TruRouteResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/TruRoute/TruRouteResponse.php -------------------------------------------------------------------------------- /src/Http/TruRoute/response.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/TruRoute/response.xml -------------------------------------------------------------------------------- /src/Http/UssdRequestInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/UssdRequestInterface.php -------------------------------------------------------------------------------- /src/Http/UssdResponseInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/UssdResponseInterface.php -------------------------------------------------------------------------------- /src/Http/Validates.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/Validates.php -------------------------------------------------------------------------------- /src/Http/XMLResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Http/XMLResponse.php -------------------------------------------------------------------------------- /src/Models/AbstractPayload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/AbstractPayload.php -------------------------------------------------------------------------------- /src/Models/AbstractSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/AbstractSession.php -------------------------------------------------------------------------------- /src/Models/AbstractTransactionTrail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/AbstractTransactionTrail.php -------------------------------------------------------------------------------- /src/Models/HistoricalPayload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/HistoricalPayload.php -------------------------------------------------------------------------------- /src/Models/HistoricalSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/HistoricalSession.php -------------------------------------------------------------------------------- /src/Models/HistoricalSessionNumber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/HistoricalSessionNumber.php -------------------------------------------------------------------------------- /src/Models/HistoricalTransactionTrail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/HistoricalTransactionTrail.php -------------------------------------------------------------------------------- /src/Models/Payload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/Payload.php -------------------------------------------------------------------------------- /src/Models/Session.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/Session.php -------------------------------------------------------------------------------- /src/Models/SessionNumber.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/SessionNumber.php -------------------------------------------------------------------------------- /src/Models/TransactionTrail.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Models/TransactionTrail.php -------------------------------------------------------------------------------- /src/Observers/PayloadObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Observers/PayloadObserver.php -------------------------------------------------------------------------------- /src/Observers/SessionNumberObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Observers/SessionNumberObserver.php -------------------------------------------------------------------------------- /src/Observers/SessionObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Observers/SessionObserver.php -------------------------------------------------------------------------------- /src/Observers/TransactionTrailObserver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Observers/TransactionTrailObserver.php -------------------------------------------------------------------------------- /src/Screen.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Screen.php -------------------------------------------------------------------------------- /src/Screens/Error.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Screens/Error.php -------------------------------------------------------------------------------- /src/Screens/ValidationFailure.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Screens/ValidationFailure.php -------------------------------------------------------------------------------- /src/Screens/Welcome.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Screens/Welcome.php -------------------------------------------------------------------------------- /src/Traits/HasBundledOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/Traits/HasBundledOptions.php -------------------------------------------------------------------------------- /src/UssdServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/UssdServiceProvider.php -------------------------------------------------------------------------------- /src/config/ussd.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/config/ussd.php -------------------------------------------------------------------------------- /src/database/migrations/create_historical_payloads_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_historical_payloads_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_historical_session_numbers_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_historical_session_numbers_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_historical_sessions_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_historical_sessions_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_historical_transaction_trails_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_historical_transaction_trails_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_payloads_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_payloads_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_session_numbers_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_session_numbers_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_sessions_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_sessions_table.php -------------------------------------------------------------------------------- /src/database/migrations/create_transaction_trails_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/database/migrations/create_transaction_trails_table.php -------------------------------------------------------------------------------- /src/routes/api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/routes/api.php -------------------------------------------------------------------------------- /src/stubs/factory.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/stubs/factory.stub -------------------------------------------------------------------------------- /src/stubs/screen.stub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/stubs/screen.stub -------------------------------------------------------------------------------- /src/translations/en/nav.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/src/translations/en/nav.php -------------------------------------------------------------------------------- /tests/Feature/FlaresAdaptorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Feature/FlaresAdaptorTest.php -------------------------------------------------------------------------------- /tests/Feature/TruRouteAdapterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Feature/TruRouteAdapterTest.php -------------------------------------------------------------------------------- /tests/Requests/FlaresTestRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Requests/FlaresTestRequest.php -------------------------------------------------------------------------------- /tests/Requests/TruRouteTestRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Requests/TruRouteTestRequest.php -------------------------------------------------------------------------------- /tests/Requests/XMLRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Requests/XMLRequest.php -------------------------------------------------------------------------------- /tests/Requests/flares.request.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Requests/flares.request.xml -------------------------------------------------------------------------------- /tests/Requests/tru.route.request.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Requests/tru.route.request.xml -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/ControllerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tnmdevs/ussd/HEAD/tests/Unit/ControllerTest.php --------------------------------------------------------------------------------