Download the PHP package kazinokib/bdappsapi without Composer
On this page you can find all versions of the php package kazinokib/bdappsapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kazinokib/bdappsapi
More information about kazinokib/bdappsapi
Files in kazinokib/bdappsapi
Package bdappsapi
Short Description A Laravel package for BDApps API integration
License MIT
Informations about the package bdappsapi
BDApps API Laravel Package
This Laravel package provides an easy-to-use interface for integrating with the BDApps API, allowing you to send SMS, handle USSD sessions, manage OTP, and perform CAAS operations in your Laravel applications.
Table of Contents
- Installation
- Configuration
- Usage
- SMS Service
- USSD Service
- OTP Service
- CAAS Service
- Error Handling
- Contributing
- License
Installation
You can install the package via composer:
Configuration
After installation, publish the configuration file:
This will create a config/bdappsapi.php
file in your app's configuration directory. You should configure your BDApps API credentials in your .env
file:
Usage
SMS Service
To send an SMS:
Receive SMS
USSD Service
To send a USSD message:
OTP Service
To request an OTP:
To verify an OTP:
CAAS Service
To query balance:
To perform a direct debit:
Error Handling
All services throw a BdappsApiException
on error. You should catch this exception and handle it appropriately:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
All versions of bdappsapi with dependencies
php Version ^7.3|^8.0|^8.1|^8.2
illuminate/support Version ^8.0|^9.0|^10.0|^11.0