marklestermorta/buka-sms-api-laravel is a Laravel package for laravel wrapper for buka sms api.
It currently has 0 GitHub stars and 2.306 downloads on Packagist.
Install it with composer require marklestermorta/buka-sms-api-laravel.
Discover more Laravel packages by marklestermorta
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel wrapper for BUKA SMS API
Require package
composer require marklestermorta/buka-sms-api-laravel
Publish Configuration file
php artisan vendor:publish --provider="MarkLesterMorta\BukaSMSApi\BukaSMSApiServiceProvider"
Add ENV variables
BUKAS_SMS_API_KEY=
BUKAS_SMS_API_SECRET=
BUKAS_SMS_APP_ID=
return BukaSMSApi::sendSMS('9*********', "Your Message");
{
"status": "0",
"reason": "success",
"success": "1",
"fail": "0",
"array":[
{
"msgId": "2108021054011000095",
"number": "9*********"
}
]
}
return BukaSMSApi::getBalance();
{
"status": "0",
"reason": "success",
"balance": "99.990000",
"gift": "50.00000",
"credit": "0"
}
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| status | string | ”0”means successful,others than 0 means failure ,seeing Status code description |
| reason | string | failure reason description |
| success | string | number of successful submitted numbers |
| fail | string | number of failure submitted numbers |
| array | JSONArray | the number of Successful Submitted Array. |
| msgId | string | submitted numbers id corresponding to platform |
| number | string | submitted numbers |
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| status | string | ”0”means successful,others than 0 means failure ,seeing Status code description |
| reason | string | failure reason description |
| balance | string | actual account balance |
| gift | string | gifted account balance |
| credit | string | credit account balance |