tmoh/nimba-sms is a Laravel package for laravel package for nimba sms api integration.
It currently has 0 GitHub stars and 1.650 downloads on Packagist (latest version 1.0.3).
Install it with composer require tmoh/nimba-sms.
Discover more Laravel packages by tmoh
or browse all Laravel packages to compare alternatives.
Last updated
Laravel package for NIMBA SMS API integration.
📖 Official Documentation: NIMBA SMS API Documentation
composer require tmoh/nimba-sms
Publish config:
php artisan vendor:publish --provider="Tmoh\NimbaSms\NimbaSmsServiceProvider" --tag="config"
Add to .env:
NIMBA_SMS_BASE_URL=https://api.nimbasms.com
NIMBA_SMS_SERVICE_ID=your_service_id
NIMBA_SMS_SERVICE_SECRET=your_service_secret
NIMBA_SMS_DEFAULT_SENDER_NAME=NIMBA
NIMBA_SMS_TIMEOUT=30
use Tmoh\NimbaSms\Facades\NimbaSms;
try {
// Send SMS
$response = NimbaSms::sendSms('623123456', 'Hello World!');
// Get account info
$account = NimbaSms::getAccounts();
// Get sender names
$senderNames = NimbaSms::getSenderNames();
// Get webhooks
$webhooks = NimbaSms::getWebhooks();
// Get purchases
$purchases = NimbaSms::getPurchases();
} catch (Exception $e) {
echo $e->getMessage();
}
MIT