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
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.0
- laravel/framework: ^10.0|^11.0|^12.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.88
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.0|^9.0|^10.0
- pestphp/pest: ^2.36
- pestphp/pest-plugin-laravel: ^2.4
- phpunit/phpunit: ^10.0
README
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