LaravelPackages.net
Acme Inc.
Toggle sidebar
tmoh/nimba-sms

Laravel package for NIMBA SMS API integration

1.650
0
1.0.3
About tmoh/nimba-sms

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

NIMBA SMS Laravel Package

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_SERVICE_ID=your_service_id NIMBA_SMS_SERVICE_SECRET=your_service_secret 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

Comments