tmoh/nimba-sms

Laravel package for NIMBA SMS API integration

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/tmoh/nimba-sms

1.0.1 2025-10-15 11:29 UTC

This package is auto-updated.

Last update: 2025-10-15 11:30:26 UTC


README

Latest Version on Packagist Total Downloads

Laravel package for NIMBA SMS API integration.

📖 Official Documentation: NIMBA SMS API Documentation

Installation

composer require tmoh/nimba-sms

Configuration

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_TOKEN=Basic xxxxx
NIMBA_SMS_DEFAULT_SENDER_NAME=NIMBA
NIMBA_SMS_TIMEOUT=30

Usage

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();
}

License

MIT